improving-mcp-tools

improving-mcp-tools is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 110 tokens per session (1,303 once invoked), scanned A, original, MIT.

A measured improvement process for MCP tools: score the agent experience, make one bounded change, score it again, and keep the change only when results improve. MCP is a standard way for agents to use external tools.

In plain words
What is it for?
Use it to run local or development evaluations, find discoverability or probe failures, compare latency and task-success scores, and journal each improvement attempt.
Why use it?
It replaces guesswork with before-and-after evidence, helping teams focus on the tool problem with the largest measured impact. It can evaluate both tool performance and whether agents choose the right tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to run local or development evaluations, find discoverability or probe failures, compare latency and task-success scores, and journal each improvement attempt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/improving-mcp-tools
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill improving-mcp-tools
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for improving-mcp-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/improving-mcp-tools/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/improving-mcp-tools)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/improving-mcp-tools"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/improving-mcp-tools/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for improving-mcp-tools

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/improving-mcp-tools"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/improving-mcp-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Tool Misuse · line 37
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01303
Opus 5.5 $0.00044 $0.00521
Sonnet 5.5 $0.00022 $0.00261
Haiku 4.5 $0.00011 $0.00130

Measured 2d ago against content hash ec395156391b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

improving-mcp-tools scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/improving-mcp-tools/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Improving MCP tools

An MCP server gets better only in ways you can measure. This skill is the campaign procedure: score the current agent experience, fix the biggest problem, re-score, and only ship changes the numbers justify. It is the operating manual for the "improve my MCP" loop — one iteration per pass, journaled so a later iteration (or a different agent) can resume without repeating work.

The objective function

This repository does not include an MCP benchmark or eval runner. Before starting a campaign, obtain a benchmark and runnable harness from the operator. Record the task set, expected tools, success criteria, benchmark version, and exact commands in the journal. If those inputs are unavailable, report the missing evidence and stop the campaign.

  • Probe mode (deterministic, no LLM): measures tool-presence misses, probe failures, and latency p50/p95.
  • Agent mode (LLM replay + judge): scores task success and tool-selection accuracy. Use it for description/discoverability changes, since probes cannot detect that an agent picks the wrong tool.

Run the supplied harness against a seeded local or devbox stack. Use the same benchmark version for baseline and after scores.

One iteration

  1. Measure. Run the harness for a baseline. Pull production evidence with the MCP analytics tools (query-mcp-tool-stats, query-mcp-tool-failures, query-mcp-tool-descriptions, query-mcp-tool-sample-intents) and the lenses in the signals scout cookbook (products/signals/skills/signals-scout-mcp-tool-calls/references/queries.md): failure leaderboard, retry/struggle, latency, intents that matched no tool.
  2. Pick one issue. Rank by reach × severity. Skip anything the journal shows with two failed attempts. One issue per iteration — a PR that fixes three things can't be attributed to any of them when scores move.
  3. Fix, bounded. Only files inside the allowlist (below). Typical fixes: sharpen a tool description so the right intent finds it, tighten an input schema that agents keep getting wrong, fix an annotation, update a skill.
  4. Validate. Re-run the affected benchmark slice plus a no-regression sample. Keep the change only if the target metric improves and nothing else degrades. A discarded change is a normal outcome — journal it and move on.
  5. Ship. One PR per iteration with before/after scores in the body (format in references/campaign-journal.md). Keep it stampable: ≤400 changed lines, only files inside the allowlist below, request a stamphog review (MCP first, @posthog stamp PR comment as the fallback, see /merging-prs). Autonomy level comes from the campaign config — default is draft PR for human review; only arm auto-merge when the operator has explicitly enabled the self-driving experiment (see guardrails).
  6. Journal. Append the iteration record before ending the pass.

Read the full file on GitHub · 100 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed ec395156391b
  2. 1mo ago Changed · -5 lines · +1 tokens per session 241f16307b52
  3. 2mo ago Changed c267d5921829
  4. 2mo ago Changed a5e0dfef045a
  5. 3mo ago First seen · 105 lines · 109 tokens per session scan A f6ba861d11df

Subscribe to this mod's changes

improving-mcp-tools is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 110 tokens to every session and 1,303 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

improving-mcp-tools compared with skills from other repositories

improving-mcp-tools next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
improving-mcp-toolsPostHog/posthog-fossSkill736todayMITA110Claude Code, Codex
eval-dataset-designbojieli/ai-agent-bookSkill61k2d agoApache-2.0A138Claude Code, Codex
create-verification-skillYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA45Claude Code
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
cua-driverdavidondrej/skillsSkill4.4kyesterdayMITA68Claude Code, Codex