Sample queries
Use these HogQL queries after you install the SDK and capture $mcp_tool_call events. See the event reference for property definitions.
See the MCP leaderboard for these queries running on PostHog's own server.


Top tools per server
Error rate per tool
P95 latency per tool
Intent samples split by source
How much of your traffic is supplying explicit context vs falling back to your intentFallback callback?
Active sessions per client
Conversation IDs are on by default, but clients must echo the handle to group calls across requests. Clients that ignore it can inflate the session count.
Advertised tools that never get called
This query finds tools that agents never called. It needs $mcp_tools_list, which Go doesn't send.
Unmet user requests (requires reportMissing: true)
What were users trying to do that your tools couldn't satisfy?
Tool call volume by client and tool, daily
Use this query to show daily call volume on a dashboard.





