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.
npx skills add Arasz/ai-raccoon --skill mcp-tool-surface-testinggit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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.
[](https://agentmods.dev/skills/arasz/ai-raccoon/mcp-tool-surface-testing)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/mcp-tool-surface-testing"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/mcp-tool-surface-testing/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.
<a href="https://agentmods.dev/skills/arasz/ai-raccoon/mcp-tool-surface-testing"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/mcp-tool-surface-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00076 | $0.01704 |
| Opus 5.5 | $0.00030 | $0.00682 |
| Sonnet 5.5 | $0.00015 | $0.00341 |
| Haiku 4.5 | $0.00008 | $0.00170 |
Grade A, and why
mcp-tool-surface-testing 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP tool-surface testing
Systematic black-box test of every tool an MCP server exports, with the expectations written down before any call and a results doc as the deliverable. The user's explicit method (verified on a 21-tool surface, 2026-08-06): expectations first, then call, then compare — never reverse the order, or the test degenerates into exploratory guessing.
When to use
- "test all tools exported by X", "full-test-all-tools", "does every MCP tool work"
- A server's surface changed (tools added/removed) and you want a live contract audit
- Before writing agent guidance that depends on tool response shapes
Procedure
- Enumerate the surface. Sources, in order: the project's mcp-index
(
.ai-badger/mcp-tools.json— per-server tool lists), the host's tool catalog (deferred tool list),list_promptsfor prompt tools. Note the count (e.g. 19 memory tools + 2 prompts = 21). - Gather the contract, then write expectations. Three sources, all read BEFORE any
call:
- the docs tool table (often stale — flag drift as a finding, don't silently follow it)
- live tool schemas (
tool_describeper tool — exact param names, required flags) - mcp-index intents (semantic expectations) Write an expectations table into the results doc: tool | expected behaviour | expected response shape. This table is the test oracle.
- Safety first. Use a DEDICATED test project id (never a real project's data).
Destructive tools (delete, delete_context, sweep, discard, share) get positive AND
negative controls (bogus hash →
{deleted: 0}). Watch/ingest tests use temp dirs. Clean up afterwards and verify zero residue (get_store_statisticsshows the test context gone). If the server needs per-project config (watch enable/scope), restore it after. - Execute in dependency order, batching independents. Write → search (verify hash round-trip at rank 1) → share → search shared; workspace begin → write → status → consolidate → verify → discard → verify. Batch independent calls in parallel; never race dependent ones (status before the write it should show).
- Compare + verdict. PASS (matches expectation) / PARTIAL (works, differs from documented/ideal shape) / FAIL. When the live contract contradicts a prior assumption, mark it as an expectation CORRECTION — the live server outranks docs, index intents, and memory.
- Perfect-response table. For each tool, the ideal response shape — what the docs promise or what would make the response unambiguous (e.g. "echo the new hash on share", "object instead of stringified JSON").
- Findings section. Docs drift vs live contract, index-intent overstatements (e.g. a tool documented as "denied in rw" that actually succeeds on this deployment), response-key inconsistencies between sibling tools, error-message gaps (typed error that doesn't name its remedy).
What ships with it
3 files 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.
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.
- yesterday First seen · 122 lines · 76 tokens per session scan A 3a91526ef837
mcp-tool-surface-testing is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 1,704 once invoked, about $0.0003 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-12-05.
mcp-tool-surface-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-tool-surface-testingArasz/ai-raccoon | Skill | 7 | today | MIT | A | 76 | Claude Code, Codex |
| debugariaxhan/kernel-claude | Skill | 16 | yesterday | MIT | A | 64 | Claude Code |
| agentsight-bugfixalibaba/anolisa | Skill | 688 | 13d ago | Apache-2.0 | A | 67 | Claude Code, Codex |
| ascend-moe-optimizer-auto-traceXiaoLuoLYG/GOD | Skill | 1.3k | 11d ago | Apache-2.0 | A | 170 | Claude Code, Codex |
| observabilityPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 67 | Claude Code |
| compiler-cb1e8e4bFuRongJun-1999/dsh-memory | Skill | 778 | today | MIT | A | 110 | Claude Code |
| code-reviewShy2593666979/AgentChat | Skill | 943 | 3d ago | MIT | A | 41 | Claude Code, Codex |