Debug why your MCP tool is being called wrong
When to use: You shipped a tool, and Claude keeps calling it with the wrong arguments.
Prerequisites
- Inspector running — npx -y @mcpjam/inspector (opens browser at localhost:6274)
- Your MCP server — Have it ready to launch via stdio command or SSE URL
Flow
-
Connect the serverIn the inspector UI, add a stdio server: command=node, args=[./dist/server.js].✓ Copied→ Tool list appears with descriptions + schemas
-
Read the LLM's viewLook at the rendered description in the tool detail panel — that's exactly what the model sees.✓ Copied→ Spot the ambiguity ("id" should be "task_id", or example missing)
-
Reproduce the misuseOpen Chat tab. Send the user prompt that caused the failure. Watch the tool_use payload.✓ Copied→ Same wrong call you saw in production
-
Fix description, retestUpdate the tool's description and example in your server code, restart, retry the same prompt.✓ Copied→ Correct call this time
Outcome: Concrete fix backed by an evidence-driven before/after.
Pitfalls
- Stale schema cached after server restart — Click 'Reconnect' in the server panel; the inspector re-fetches list_tools