provider mcp_analytics GET /api/environments/{environment_id}/mcp_analytics/sessions/{id}/tool_calls/
@utdk/posthog /api/environments/{environment_id}/mcp_analytics/sessions/{id}/tool_calls/
environments_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
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
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

Try it

Authentication
Configure credentials for PostHog API
environmentsMcpAnalyticsSessionsToolCalls
GET/api/environments/{environment_id}/mcp_analytics/sessions/{id}/tool_calls/
List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order.

Parameters

required

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

required

A UUID string identifying this mcp analytics submission.

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.

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.

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.

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.environmentsMcpAnalyticsSessionsToolCalls({
  "limit": 500,
  "offset": 0
})