MCP Tool Descriptions That Route the Model to the Right Call
The model picks a tool from the text you gave it. A description that says "handles data" is how you get a delete call when the user asked for a count. MCP does not add judgment. It adds a list. The name, the one-paragraph description, and the JSON schema are that list.
Write the description as the condition for calling the tool, not as a marketing line.
| Weak | Routes |
|---|---|
| "Account tool" | Anything with the word account |
| "Gets an account by id. Does not search. Does not update." | A request that already has an id |
| "Search accounts by name or domain. Returns at most 20 summaries, not full records." | A request that does not have an id yet |
The negative sentence matters. Models call the closest tool. If search and get-by-id both say "accounts," the model flips a coin. Say what the tool will not do, and name the other tool that will.
Names are routing too
get_account and search_accounts are better than account and accounts. A verb plus a noun, plural when the result is a list. Do not number tools (account2). Do not reuse a name after you change the schema; hosts cache definitions and you will debug yesterday's arguments.
This is the same split as putting the workflow in code. Descriptions route the model among tools you were willing to expose. They do not replace a write that the program should have made itself. If delete_account should never run without a human click, do not put it in the list for that session. A sharper description will still be called if the user says "delete."
Schema is the second description
Required fields are instructions. If accountId is required on the get tool, the model has to produce one, which pushes it toward search first when the user typed a name. Optional fields that you did not mean to be optional will be filled with guesses. Mark required what the server actually needs. Give each property a description with the format: "GUID from search_accounts, not the account number printed on an invoice."
Enums beat free strings for status, channel, and environment. A free string becomes "prod", "production", and "PROD" in the same afternoon. The server can reject the others. It is cheaper if the schema never offers them.
Return errors as tool results the model can read: which argument was wrong, and which tool to call instead. A stack trace teaches the model nothing. "accountId is not a GUID. Call search_accounts with the name." teaches the next step.
Before: one blob the model cannot split
This is a tool list that will route a count question into a write, or a name into a GUID field.
{
"name": "account",
"description": "Handles account data for the CRM.",
"inputSchema": {
"type": "object",
"properties": {
"query": { "type": "string" },
"id": { "type": "string" },
"action": { "type": "string" },
"payload": { "type": "object" }
}
}
}
Nothing is required. action is a free string. The model will invent action: "get" for "how many accounts are in EMEA," or set id to the word EMEA. Your server then has to be a router. That is the workflow leaking back into the tool.
After: two tools with a hard boundary
Split read paths. Put the write behind a confirmation tool you only enable when the session is allowed to mutate.
{
"name": "search_accounts",
"description": "Search accounts by name, domain, or region when the user has no GUID. Returns at most 20 summaries. Does not update or delete. For a known GUID, call get_account.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Account name or fragment. Omit when filtering only by region."
},
"region": {
"type": "string",
"enum": ["AMER", "EMEA", "APAC"],
"description": "Sales region code. Use EMEA for Europe, Middle East, and Africa."
}
},
"additionalProperties": false
}
}
{
"name": "get_account",
"description": "Gets one account by Dataverse GUID. Does not search by name or region. Call search_accounts when there is no id. Does not update or delete.",
"inputSchema": {
"type": "object",
"properties": {
"accountId": {
"type": "string",
"description": "GUID returned by search_accounts. Not the account number on an invoice."
}
},
"required": ["accountId"],
"additionalProperties": false
}
}
delete_account is a third tool. It should not appear in a read-only session. A sharper description will still match the word "delete." Absence from the list is the real guard. additionalProperties: false stops limit: 1000 on a tool that ignores it. The server should still cap search at 20.
A miss-eval you should fail on purpose
Happy-path evals do not catch overlap. Add a case whose correct tool is not the one whose name appears in the prompt.
Prompt: "How many accounts are in EMEA?"
Must not call: get_account (no GUID), delete_account (no delete intent), or the old account blob with action: "count".
May call: search_accounts with { "region": "EMEA" }, after which your code counts. Do not hope the model will add.
Prompt: "Get the Contoso account."
Must not call: get_account with accountId: "Contoso". That string is not a GUID.
Must call: search_accounts with { "name": "Contoso" }. A later turn may call get_account with the GUID from search.
Prompt: "Delete the EMEA accounts." If delete_account is in the list, this will match it. That is not a description bug. Take the tool out, or require a confirmation tool whose name the user never says. Score the eval on whether a bulk delete ran without that token.
Log the tool name, the arguments, and whether the user accepted the result. Change the description, not the temperature.
When two tools still get confused
If traces show the wrong tool more than rarely, the descriptions overlap. Merge them, or make the boundary a word the user actually says. "Invoice" versus "payment" is a boundary. "Get data" versus "fetch data" is not.
Keep the list small. Past a few dozen tools the model skims. Group rare operations behind one action enum (export_csv | export_xlsx) or a second server the client enables only in that workflow. Do not put search | get | delete on one enum. That is the before JSON again.
Do not add get_account_by_number if search_accounts can take that number. A third read path triples the miss surface. Do not add a tool whose only job is to "decide which tool to call." Do not add count_accounts and search_accounts that both take region unless count is a real aggregate; they will steal calls from each other.
Catalog checklist
- Read the names out loud. If two names differ only by plural, rename.
- Each description: one sentence for when to call, one for when not to, one naming the sibling tool.
- Required fields match what the server actually validates. Optional means the server works without it.
- Enums for any closed set. No free-string
action. - One eval that must not call the new tool. Run it when you add the tool, not after a user hits the miss.
- Destructive tools absent from sessions that are read-only.
- Errors name the next tool. Stack traces do not.
When you add a tool, add one eval case that should not call it. Routing tests that only check the happy path miss the overlap. The miss you care about is the other tool sitting one sentence away.
Keep reading
MCP Went Stateless: What the 2026-07-28 Spec Changes for Your Server
The Model Context Protocol 2026-07-28 release removes sessions and the initialize handshake, adds routing headers and cacheable lists, moves Tasks to an extension, and deprecates Dynamic Client Registration. What to change in an MCP server.
MCP Resources vs Tools vs Prompts: Stop Putting Everything in a Tool
The three primitives in the Model Context Protocol, what the model actually sees, and a rule of thumb for Dataverse, files, and internal APIs.
An MCP Server for Dynamics 365 Finance and Operations: Natural-Language Access to ERP
How to expose Dynamics 365 Finance and Operations to Claude through MCP — the architecture, the data entity choices, the auth model, and the operations that should never be one prompt away.
Building Your First MCP Server in Python: A Hands-On Walkthrough
From zero to a working Model Context Protocol server in about 100 lines — tools, resources, a local client test, and the traps that will bite you on day one.
Approval Sits Between tool_use and tool_result
Human approval is not a new chat message. It is a delay before the matching tool_result. A user turn in that gap is a 400, a lost denial, or a tool that ran anyway.
Screenshots Fill Every Later Turn: Downscale, Then Drop the Pixels
A screenshot is not a log line. It is input on every later request. Downscale on ingest, extract the text, and drop the pixels after the model has read them.
Newsletter
New posts, straight to your inbox
One email when a new post goes up. Double opt-in, unsubscribe anytime. Not a daily digest.
Comments
- No comments yet. Be the first.