Evaluate MCP Tools
Tool descriptions are prompt engineering — they land directly in Claude's context window and determine whether Claude picks the right tool with the right arguments. This skill makes tool quality measurable and improvable instead of guesswork.
Three levels of testing, each building on the last:
- Static Analysis — deterministic schema quality checks (no Claude calls)
- Selection Testing — does Claude pick the right tool for each intent?
- Description Optimization — iterative improvement based on confusion patterns
When to Apply
- User wants to check if their MCP tool schemas are well-designed
- User wants to test whether Claude selects the right tools for user intents
- User is debugging tool confusion (Claude picks the wrong tool)
- User wants to optimize tool descriptions for better selection accuracy
- User has finished scaffolding with
build-mcp-serverand wants to validate quality
Workflow Overview
Phase 1: Connect → Phase 2: Static Analysis → Phase 3: Selection Testing → Phase 4: Optimize
↑__________________________|
Phase 4 loops back: apply rewrites → refetch schemas → retest → compare accuracy.
Prerequisites
- Node.js >= 18 — required for the MCP Inspector CLI (
npx) - jq — required for schema analysis scripts
- A running MCP server — the server must respond to
tools/list. Usebuild-mcp-server/scripts/test-server.shto verify connectivity first.
Phase 1 — Connect & Inventory
Connect to the user's MCP server and fetch the tool schemas.
1a: Get connection details
Ask the user how to reach their server:
- HTTP/SSE: URL (e.g.,
http://localhost:3000/mcp) - stdio: spawn command (e.g.,
node dist/server.js)
1b: Fetch tool schemas
bash scripts/fetch-tools.sh <url-or-command> <transport> <workspace>/tools.json
This calls tools/list via the MCP Inspector CLI and saves the schemas.
1c: Display inventory
Show a summary table:
| # | Tool | Description (preview) | Params | Annotations |
|---|------|-----------------------|--------|-------------|
| 1 | search_issues | Search issues by keyword... | 3 | readOnlyHint |
| 2 | create_issue | Create a new issue... | 4 | — |
Flag tool count: 1-15 optimal, 15-30 warning, 30+ excessive (consider search+execute pattern).
1d: Create workspace
Create workspace at {server-name}-eval/ adjacent to the skill directory or in the user's project:
{server-name}-eval/
├── tools.json
├── evals/
│ └── evals.json
└── iteration-N/
Phase 2 — Static Analysis
Run deterministic quality checks — no Claude calls needed. This gives immediate feedback during development.
2a: Run analysis
bash scripts/analyze-schemas.sh <workspace>/tools.json <workspace>/iteration-N/static-analysis.json