How to debug why your MCP tool isn't being called
Wann einsetzen: You wrote a tool, Claude doesn't use it, and you don't know why.
Voraussetzungen
- Node — nodejs.org or nvm
Ablauf
-
Launch Inspectornpx @mcpjam/inspector@latest and open the printed URL.✓ Kopiert→ UI opens in browser
-
Connect your serverIn the UI, add your server (stdio or HTTP) and connect.✓ Kopiert→ Tools list populates
-
Simulate a promptIn the Chat tab, ask a question that should trigger your tool. Watch the JSON-RPC trace.✓ Kopiert→ Either tool fires (good) or you see why the model rejected it (bad description, missing input schema)
Ergebnis: Concrete reason (wrong tool description, schema issue, model choice) with a visible fix.
Fallstricke
- Testing with a weaker model that never uses tools — Test across multiple models in the Evals tab — Haiku, Sonnet, GPT-4o — behavior varies