provider mcp_tools POST /api/environments/{environment_id}/mcp_tools/{tool_name}/
@utdk/posthog /api/environments/{environment_id}/mcp_tools/{tool_name}/
environments_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.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
tool_name path required
string

Try it

Authentication
Configure credentials for PostHog API
environmentsMcpToolsCreate
POST/api/environments/{environment_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

Deprecated. Use /api/projects/{project_id}/ instead.

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.environmentsMcpToolsCreate()