signals-scout-mcp-tool-calls
它能做什么
该侦察器监看 AI 智能体如何使用 PostHog MCP 工具,并找出需要改进的工具。适合基于 PostHog MCP 工具进行开发或运营、并希望它们对智能体运作良好的团队。
适用场景
- ✓当某个 MCP 工具对许多智能体频繁失败时。
- ✓当智能体反复重试同一个 MCP 工具时。
- ✓当某个 MCP 工具的响应很慢或非常庞大的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-mcp-tool-calls/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“哪些 PostHog MCP 工具对我的智能体失败或响应缓慢?应该修复什么?”
每周 5 个新技能,1 分钟读完。
工作原理
它会读取工具调用的遥测数据,并按负责该工具的产品团队对有问题的工具进行分组。每一组只提交一份报告,报告中为每个工具附上修复建议;运行正常的分组则不会有报告。
技术内容(原始 SKILL.md)
作者在 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 |
常见问题
工具必须经常失败才会被报告吗?
不必。工具即使只是速度慢或响应过于庞大,也可能需要改进,并不只是因为失败。
报告发给谁?
报告按所属的产品类别分组,因此每个团队会为其工具收到一份报告。
它会报告运行正常的工具吗?
不会。运行正常的类别不会有报告。
详情
作者的原始描述
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
热度
- GitHub 星标
- 41k
- 排名
- #6936
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。