Claude not using your MCP tool? Diagnose it with an agent that has no context
Updated November 23, 2026. 7 min read.
In short. When Claude ignores a tool from your MCP server (MCP is the protocol that lets an assistant call functions you expose), the server is rarely broken. Either the tool is not visible in that session, or its name and description don't tell an agent with no context when to use it. Rule out visibility first, then run ten realistic tasks with a fresh agent, count the correct calls, rewrite the descriptions and count again.
Is the tool even visible to Claude?
Three checks take five minutes and can save you an afternoon of rewriting.
- In Claude on the web or desktopOpen the connector's page and look under Tool permissions. Anthropic's connector testing guide says every tool your server advertises should be listed there with its name and description. A tool set to Blocked is not offered to Claude, and the connector has to be turned on in the chat, from the + menu, under Connectors.
- In Claude CodeRun
/mcp. Tool search is on by default: per the Claude Code MCP documentation, only tool names and server instructions load at session start, and a full definition is fetched when Claude needs it. A vague name can lose before the description is even read. The same page says a tool whose full name is longer than 128 characters is left out. - An "MCP tool not found" errorThat is a different problem. In the MCP specification, calling a name the server does not list is a protocol error (the example message starts with
Unknown tool). The tool was renamed or the client holds an old list: reconnect, then compare with whattools/listreturns.
Why does a working tool still get skipped?
Because the model only knows what the definition says. The MCP schema presents the description field as a hint that improves the model's understanding of the tool, nothing more. Anthropic's guide to defining tools calls detailed descriptions the most important factor in tool performance and suggests at least three or four sentences per tool, including when it should and should not be used.
Its engineering article Writing tools for agents (September 11, 2025) gives a simple test: "describe your tool to a new hire on your team". You built the tool, so you cannot forget when to use it. That is why the diagnosis below relies on an agent that knows nothing about your product.
How do you run the ten-task protocol?
- Write ten tasks the way a customer would type them. Never name the tool. Aim for six tasks that need one tool, two that need two tools in a row, and two where no tool should be called. For each task, note the expected tool and a result you can verify, as Anthropic's article recommends.
- Start a fresh agent. New conversation, no project instructions, memory off, a test account with sample data. In Claude Code, use an empty folder with no
CLAUDE.md. Nothing should explain your product except the server itself. - Run each task once, exactly as written. No hints, no rephrasing, no "use the search tool".
- Score it. One point when the right tool is called with usable arguments. Zero for a wrong tool, no call at all, or an answer made up without calling anything. Copy what the agent wrote just before each miss.
- Rewrite, then rerun. Change names, descriptions, parameter names and error messages only. Open a new fresh conversation, replay the ten tasks and count again.
Ten tasks is a smoke test, not a statistic: a model can answer the same prompt differently twice. Read a jump from 4 out of 10 to 9 out of 10 as a signal, and a move from 7 to 8 as noise. Keep two or three tasks you never look at while rewriting, so you don't tune the descriptions to your own test. Anthropic describes the same precaution with held-out test sets.
Read the misses before you rewrite: what the agent wrote instead of calling your tool tells you what it was missing.
What does a better description look like?
Here is an invented example for an invoicing app, not a measured result. Before:
name: search
description: Search records.
parameters: q (string)
After:
name: invoices_search
description: Search the signed-in customer's invoices by client
name, invoice number or date range. Use it when the user asks
whether an invoice exists, how much it is for, or whether it was
paid. Returns up to 20 invoices with id, client, total and status.
Does not return line items: call invoices_get with the id for
those. Does not search quotes.
parameters: client_name (string), issued_after (date, YYYY-MM-DD)
The name carries a prefix, which Anthropic recommends so that related tools group together. The description says when to call the tool, what comes back and what it leaves out. The parameters are named for what they contain, in the spirit of the article's advice to prefer user_id over user. If two of your tools could answer the same task, merge them or state the difference in both descriptions.
One detail matters in Claude Code: it cuts a description that loads upfront after 4,096 characters and matches search queries against the start of the text. Put the words a user would say in the first sentence.
What if Claude calls the tool, then gives up?
Look at your error messages. The specification separates protocol errors from tool execution errors, returned with isError: true, and says clients should pass the second kind to the model so it can correct itself and retry. An error that only says the input is invalid gives the model nothing to correct. State what was wrong and show a valid value.
To apply all of this, paste the failed tasks into your coding assistant with a prompt like this one:
Here are tasks where a fresh agent failed to call the right tool
on my MCP server, with what the agent answered instead: [PASTE].
For each tool involved, rewrite its name, description and
parameter descriptions so that an agent with no knowledge of my
product knows when to call it, when not to, what it returns and
what format each parameter expects. Put the words a user would
say in the first sentence. Make every error message state what
was wrong and show a valid example. Do not change what the tools do.
Annotations such as readOnlyHint are worth setting too. The schema defines them as hints about a tool's behavior, for example whether it modifies anything. They tell the client how risky a call is, not when to make it, so they never replace a description.
Frequently asked questions
Why does Claude say it has no access to my MCP tool when the server is connected?
Check visibility before descriptions. The connector may be off in that chat, the tool may be blocked in Tool permissions, or in Claude Code its full name may exceed 128 characters. If the server itself is missing, follow our connection checklist.
How long should an MCP tool description be?
Anthropic's guidance is at least three or four sentences, more for a complex tool. Lead with the essentials: Claude Code cuts an upfront description after 4,096 characters and searches the beginning of the text.
Can I write "always call this tool first" in the description?
Don't. A description should say what the tool does, not give the model orders. Claude's connector directory rejects descriptions that tell Claude how to behave or that interfere with other tools, as we explain in our guide to directory review criteria.
Does this protocol work with agents other than Claude?
The method does: realistic tasks, an agent with no context, a count before and after. The scores do not transfer from one client to another, so replay the ten tasks in every client you support.
Keep reading
- AI keeps breaking working code: the 15-line regression list for non-developers
- Stripe webhook in Lovable: six payment tests to run with a fresh account
- QA for vibe coders: what you can test in one hour without reading the code
Want a pair of eyes that has never seen your product?
Cobaye tests your SaaS or your MCP server from the outside, with fresh accounts, and hands you the findings ranked by severity, each with the prompt that fixes it. The first 20 on the waitlist get 50% off their first test.
Join the waitlist