How to debug why your MCP tool isn't being called
Когда использовать: You wrote a tool, Claude doesn't use it, and you don't know why.
Предварительные требования
- Node — nodejs.org or nvm
Поток
-
Launch Inspectornpx @mcpjam/inspector@latest and open the printed URL.✓ Скопировано→ UI opens in browser
-
Connect your serverIn the UI, add your server (stdio or HTTP) and connect.✓ Скопировано→ Tools list populates
-
Simulate a promptIn the Chat tab, ask a question that should trigger your tool. Watch the JSON-RPC trace.✓ Скопировано→ Either tool fires (good) or you see why the model rejected it (bad description, missing input schema)
Итог: Concrete reason (wrong tool description, schema issue, model choice) with a visible fix.
Подводные камни
- Testing with a weaker model that never uses tools — Test across multiple models in the Evals tab — Haiku, Sonnet, GPT-4o — behavior varies