signals-scout-mcp-tool-calls
Fungsinya
Scout ini memantau cara agent AI menggunakan alat MCP PostHog dan menemukan alat yang perlu diperbaiki. Ditujukan untuk tim yang membangun di atas atau menjalankan alat MCP PostHog dan ingin alat tersebut berfungsi baik untuk agent.
Kapan dipakai
- βSaat sebuah alat MCP sering gagal untuk banyak agent.
- βSaat agent terus mencoba ulang satu alat MCP berulang kali.
- βSaat respons alat MCP lambat atau sangat besar.
Link skill
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-mcp-tool-calls/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βAlat MCP PostHog mana yang gagal atau lambat untuk agent saya, dan apa yang perlu diperbaiki?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Scout membaca telemetri panggilan alat dan mengelompokkan alat bermasalah berdasarkan tim produk yang memilikinya. Untuk setiap kelompok, scout mengajukan satu laporan dengan saran perbaikan untuk setiap alat, dan kelompok yang sehat tidak mendapat apa pun.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 |
Pertanyaan umum
Apakah alat harus sering gagal agar dilaporkan?
Tidak. Sebuah alat dapat memerlukan perbaikan karena lambat atau membuat respons membengkak, bukan hanya karena gagal.
Siapa yang menerima laporan?
Laporan dikelompokkan berdasarkan kategori produk pemiliknya, sehingga setiap tim mendapat satu laporan untuk alatnya.
Apakah scout melaporkan alat yang sehat?
Tidak. Kategori yang sehat tidak mendapat laporan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6936
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
mcporter
394kMembantu agent Anda mendaftar, memanggil, dan memeriksa server MCP beserta alatnya lewat HTTP atau stdio, serta mengatur pengaturan login mereka.
fastmcp
260kMembantu Anda membangun, menguji, dan menerapkan server MCP Python yang memberi asisten AI akses ke API, basis data, atau file Anda sebagai alat.
mcp-oauth-remote-gateway
260kMemandu Anda masuk dengan OAuth untuk server MCP jarak jauh saat Hermes berjalan di server, di mana proses masuk browser biasa tidak dapat menjangkaunya.