Sample queries
Contents
Use these HogQL queries after you install the SDK and capture $mcp_tool_call events. See the event reference for property definitions.
For a live example, the MCP leaderboard runs queries like these over PostHog's own MCP server – shares by client and model, plus error rate and p95 latency per tool – and serves the results through Endpoints.


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. The Go SDK sends no $mcp_initialize, so only its tool calls count.
Advertised tools that never get called
This query finds tools in tools/list responses that agents never called. The Go SDK sends no $mcp_tools_list, so this query returns nothing for Go servers.
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.