provider mcp_analytics GET
/api/projects/{project_id}/mcp_analytics/sessions/{id}/tool_calls/ @utdk/posthog
/api/projects/{project_id}/mcp_analytics/sessions/{id}/tool_calls/ mcp_analytics_sessions_tool_calls
List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order.
- date_from query
- Absolute ISO timestamp lower bound for the event scan — pass the session's start so older sessions resolve. Defaults to a 7-day lookback when omitted or unparseable.
- string
- id path required
- A UUID string identifying this mcp analytics submission.
- string
- limit query
- Maximum tool calls to return per page (1–500). Defaults to 500 — the whole page — so a session's calls come back in one request; pass a smaller value for a lighter response. Values above the cap are rejected.
- integer
- offset query
- Number of tool calls to skip before returning results. Combine with limit to page through a session's calls; the response's has_next flag indicates whether more remain.
- integer
- 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
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.mcpAnalyticsSessionsToolCalls({
"limit": 500,
"offset": 0
})