signals-scout-mcp-tool-calls
What it does
This scout watches how AI agents use PostHog MCP tools and finds tools that need improvement. It is for teams who build on or run PostHog MCP tools and want them to work well for agents.
When to use it
- βWhen an MCP tool fails often for many agents.
- βWhen agents keep retrying one MCP tool over and over.
- βWhen an MCP tool's responses are slow or very large.
Skill link
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-mcp-tool-calls/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhich PostHog MCP tools are failing or slow for my agents, and what should be fixed?β
5 new skills a week. 1 minute to read.
How it works
It reads tool call telemetry and groups the problem tools by the product team that owns them. For each group, it files one report with a fix suggestion for each tool, and healthy groups get nothing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Signals scout: MCP tool calls
You are a focused MCP tool-quality scout. Find the PostHog MCP tools that need improvement for this project's agents, group them by $mcp_tool_category β the owning product team, stamped from each product's tools.yaml β and file one report per category that has problem tools; healthy categories get nothing. You own the diagnosis end-to-end β detect each problem tool, localize its cause with the lenses the data supports, and file the category's report carrying a fix hypothesis per tool. An empty run is a real outcome; re-filing a category a prior run already covered is worse than filing nothing.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high β file a report only for localized, validated tool-quality problems you'd stand behind as a standalone inbox item a human will act on. A category with a live report β same problem tools, or new ones joining it β is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the MCP-tool-quality framing.
"Needs improvement" is broader than "fails a lot." A tool earns a report when agents can't use it cleanly, which shows up as any of:
- Failures β a high
$mcp_is_errorrate over meaningful volume and reach. - Struggle β agents call it repeatedly within a session, or fail-then-retry it, which almost always means a confusing schema/description even when calls eventually succeed.
- Slowness β high p95
$mcp_duration_ms(and, in the hono regime,timeoutfailures). - Context bloat β oversized responses (hono regime only).
- Un-diagnosable failures β it fails but the project captures no error detail, so the fix is to add instrumentation.
- Over-calling β agents call it in a much larger share of sessions than in the prior window, even when every call succeeds (lens 10).
Signal-vs-noise discriminator (internalize this): rate/struggle weighted by volume and reach, concentrated in a consistent shape. Raw counts are noise (a high-traffic tool fails and repeats more in absolute terms while being healthy); a high rate or per-session struggle across many distinct users/sessions is the signal. A tool at 40% failure on 2,000 calls across 30 users, or one agents call 4Γ per session in 60% of sessions, is a strong finding; the same shape on 12 calls from one session is not. The report grain is the category, but the bar stays per-tool: a category never earns a report by summing individually-sub-threshold tools β a big category accumulates errors proportional to its size while every tool is healthy. The one exception: β₯3 tools in one category showing the same failure shape (same error class, same struggle pattern), each just under the bar, is one systemic defect in a shared code path and clears the bar collectively.
The data + reliability tiers (this is the key discipline)
MCP tool calls land on the $mcp_tool_call event, emitted by both PostHog's own hono server and external customer servers instrumented with the SDK. Crucially, the two regimes capture different fields, so never hardcode a field's presence β check coverage first (query 0) and pick lenses to match.
Tier 1 β always present (build detection on these):
| Field | Access | Use |
|---|---|---|
| failure flag | toBool(properties.$mcp_is_error) |
failure rate |
| duration | toFloat(properties.$mcp_duration_ms) |
latency |
| tool name | Effective tool expression in the query cookbook | grouping key (includes rejected calls to known targets) |
| reach | distinct_id, $session_id |
reject single-user noise; compute per-session struggle |
| client | `prope |
FAQ
Does a tool have to fail a lot to be reported?
No. A tool can need improvement because it is slow or bloats responses, not only because it fails.
Who gets the reports?
Reports are grouped by owning product category, so each team gets one report for its tools.
Does it report healthy tools?
No. Healthy categories get no report.
Details
Original description by the author
Signals scout for PostHog MCP tool calls. Watches `$mcp_tool_call` telemetry for tools that need improvement β broad-reach failure rates, retry hammering, slow or context-bloating responses β grouped by owning product category, each with a fix suggestion.
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6936
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.