provider mcp_tools POST /api/projects/{project_id}/mcp_tools/{tool_name}/
@utdk/posthog /api/projects/{project_id}/mcp_tools/{tool_name}/
mcp_tools_create
Invoke an MCP tool by name. This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow. Scopes are resolved dynamically per tool via dangerously_get_required_scopes.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
tool_name path required
string

Try it

Authentication
Configure credentials for PostHog API
mcpToolsCreate
POST/api/projects/{project_id}/mcp_tools/{tool_name}/
Invoke an MCP tool by name. This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow. Scopes are resolved dynamically per tool via dangerously_get_required_scopes.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.mcpToolsCreate()