Aller au contenu
Skillpedia
Connecteurs (MCP)41k · #6936

signals-scout-mcp-tool-calls

Ce qu’il fait

Ce scout observe la façon dont les agents IA utilisent les outils MCP de PostHog et repère les outils qui ont besoin d'être améliorés. Il s'adresse aux équipes qui développent ou font fonctionner des outils MCP de PostHog et veulent qu'ils fonctionnent bien pour les agents.

Quand l’utiliser

  • ✓Quand un outil MCP échoue souvent pour de nombreux agents.
  • ✓Quand des agents relancent sans cesse le même outil MCP.
  • ✓Quand les réponses d'un outil MCP sont lentes ou très volumineuses.

Lien du skill

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-mcp-tool-calls/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-mcp-tool-calls/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Quels outils MCP de PostHog échouent ou sont lents pour mes agents, et que faut-il corriger ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le scout lit la télémétrie des appels d'outils et regroupe les outils problématiques par équipe produit propriétaire. Pour chaque groupe, il dépose un seul rapport avec une suggestion de correction pour chaque outil. Les groupes sains ne génèrent aucun rapport.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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:

  1. Failures — a high $mcp_is_error rate over meaningful volume and reach.
  2. 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.
  3. Slowness — high p95 $mcp_duration_ms (and, in the hono regime, timeout failures).
  4. Context bloat — oversized responses (hono regime only).
  5. Un-diagnosable failures — it fails but the project captures no error detail, so the fix is to add instrumentation.
  6. 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
Questions fréquentes

Un outil doit-il beaucoup échouer pour être signalé ?

Non. Un outil peut avoir besoin d'être amélioré parce qu'il est lent ou alourdit les réponses, et pas seulement parce qu'il échoue.

Qui reçoit les rapports ?

Les rapports sont regroupés par catégorie produit propriétaire, chaque équipe reçoit donc un rapport pour ses outils.

Signale-t-il les outils en bon état ?

Non. Les catégories saines ne génèrent aucun rapport.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
41k
Position au classement
#6936
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires