Writing MCP tool descriptions models pick
How to write MCP tool names, descriptions and parameter docs so models choose the right tool, including negative guidance, length, and what reviewers reject.
A model chooses between tools by reading their names, descriptions, parameter schemas and annotations. The MCP schema itself says a tool description "can be thought of like a hint to the model". That text is your whole sales pitch to the only reader who matters at call time, and it is also what directory reviewers read. The same sentence has to satisfy both.
This guide covers selection, negative guidance, length, and what gets rejected. Sources: OpenAI's metadata optimization guide, its MCP server guide and plugin guidelines, Claude's review criteria, and the MCP tools spec. We have shipped multiple commercial MCP servers through both reviews, and the patterns below are the ones that survived.
What a model sees
For every connected server, the client puts each tool's name, description, inputSchema (including per-parameter descriptions) and sometimes annotations into the model's context. The model then decides whether any tool is relevant and which one. OpenAI says to treat this metadata as user-facing behavior, because the model uses it to decide whether and how to call a tool. Everything below follows from that.
Two consequences:
- Selection is a ranking problem across all connected tools, not only yours. A user might have a dozen connectors on. Your tool competes with tools from other vendors for the same request.
- Every definition costs context on every turn. More tools and longer text means less room and worse choices.
Names
OpenAI recommends action-oriented, verb-led names such as list_projects, get_project, update_project, one tool per distinct action. Its optimization guide suggests pairing the domain with the action, such as calendar.create_event. The MCP spec allows A-Z, a-z, 0-9, underscore, hyphen and dot, with 1 to 128 characters. Claude's review criteria cap names at 64.
Practical rules:
- Verb first, then the object:
search_players,get_odds,cancel_order. - Do not use near-duplicates (
get_orderandfetch_order). The model cannot tell them apart and neither can a reviewer. - Make read and write tools differ by verb, not by a trailing flag.
- No promotional or comparative names (
best_,official_). OpenAI lists them as rejection examples.
The description formula
OpenAI's guide gives the pattern: start with "Use this when", then state the intended scenario, then name cases where the tool should not be used. Add the facts the model needs to pick correctly and to use the result.
A good description answers six questions in two to four sentences:
- What does it do?
- When should I use it? (the user intent, not your internal feature name)
- What do I need first? (an ID from another tool, a date format)
- What comes back?
- What does it not do?
- Does it change anything?
Compare:
Weak: "Gets order."
Better: "Use this when the user asks about a specific order, for example 'where is order 1042'.
Returns status, carrier, tracking number and estimated delivery. Needs an order ID;
use list_orders if the user has not given one. Read-only."
The weak version fails three ways. It is too short for the model to separate from list_orders. It states no intent. It gives no ID source, so the model will invent an ID. Claude's reviewers also read it as under-specified, since the criteria ask for descriptions that "state precisely what the tool does and when to invoke it".
Negative guidance, done safely
Negative guidance reduces wrong calls. OpenAI's guide says to name disallowed cases explicitly, with the example "Do not use for reminders". It also says prioritize precision on negative prompts before chasing small recall gains.
But the review rules draw a line. OpenAI's guidelines say do not favor or disparage other plugins, do not push the model toward or away from them, and do not instruct it to invoke another plugin. Claude's criteria reject descriptions that interfere with Claude calling other tools or that promote products.
The way to reconcile: write negative guidance about the task and about your own tools.
- Good: "Does not return historical orders. Use list_orders for order history." It scopes the tool and points to a sibling.
- Good: "Not for questions about pricing or refunds."
- Bad: "Always use this instead of the built-in search." It steers away from another tool.
- Bad: "Use this before any other tool." It competes for priority.
- Bad: "Do not call other connectors for this." It interferes with other tools.
The test: could a reviewer read your sentence as an instruction about how the model should treat tools you do not own? If yes, cut it.
Parameters carry weight too
The model fills in arguments from the parameter schema, so each parameter description matters as much as the tool description. OpenAI says to describe each argument, include examples, and list allowed values for constrained inputs.
{
"date": { "type": "string", "description": "Start date as YYYY-MM-DD, for example 2026-03-14. Defaults to today." },
"status": { "type": "string", "enum": ["open", "shipped", "cancelled"], "description": "Filter by order status." },
"limit": { "type": "integer", "minimum": 1, "maximum": 50, "description": "Number of results. Default 10." }
}
Use enums and bounds instead of prose where you can. Mark optional fields optional. Avoid parameters whose description is just the parameter name, such as {"id": {"description": "id"}}, because they produce guessed values. For tools with no parameters the spec recommends {"type": "object", "additionalProperties": false}.
Length
No official page we read states a maximum description length. What the docs do say:
- Claude: descriptions must be narrow and accurate, and responses should be reasonably sized.
- OpenAI: server-level
instructionsare used alongside tool metadata, and the most important details should go in the first 512 characters. Do not repeat every tool description there. - The cost is in context: every definition is loaded every turn.
Our scan uses these heuristics, which are ours, not Anthropic's or OpenAI's: a description under 15 characters fails, under 40 warns, and over 1,000 warns. In practice two to four sentences is enough for most tools. If you need more, the usual cause is a tool that does too many things. Split it. OpenAI's own guide says to prefer focused operations over one tool with many unrelated modes.
Put cross-tool guidance in server instructions: required call order, shared rate limits, how IDs flow between tools. Keep it short and do not use it for marketing.
What gets rejected
From the review criteria and guidelines:
- Promotional language, superlatives and comparisons ("the best", "the fastest")
- Pricing, credits, plans or free-trial mentions
- Claims no one can verify
- Instructions to the model about its behavior, to call other software the user did not ask for, or to fetch instructions from a URL
- Hidden, encoded or invisible text
- Catch-all tools that cannot be described honestly: a freeform query tool must at least name the target API
- Descriptions that do not match what the tool does, including undisclosed side effects
- Identical descriptions on different tools
Remove marketing from descriptions entirely. A neutral spec reads better to a model and passes review in both directories.
Test selection with prompts, not intuition
OpenAI's guide describes a golden prompt set with three kinds of prompts:
- Direct: the user names your product or data source.
- Indirect: the user describes the outcome without naming you.
- Negative: a different tool, or no tool, should handle it.
Record the expected behavior for each, run the set against the connected server, and log which tool was selected and with what arguments. Precision asks whether the right tool ran. Recall asks whether a tool ran when it should have. Change one metadata field at a time so you can attribute the change, and have someone review wording diffs before you deploy.
Indirect prompts are where most servers lose. A user says "who's likely to win tonight", not "call get_game_probabilities". If the description does not mention the user's words, the model may answer from memory instead of calling you.
After launch, rerun the set whenever you add or rename a tool, because a new tool can steal prompts from an old one. OpenAI suggests reviewing tool-call analytics weekly. A spike in confirmations of the wrong tool suggests metadata drift.
A quick rewrite checklist
- Name is verb first and unique
- Description starts with "Use this when" and a real user intent
- It states what comes back and what is needed first
- It says what it does not do, scoped to the task or to your own sibling tools
- It says whether it changes data
- No pricing, superlatives, comparisons or instructions about other tools
- Every parameter has a description, an example and constraints
- Descriptions differ from each other
- An indirect and a negative test prompt exist for each tool
Check your server
Run the free scan at /scan to see which of your descriptions are too short, promotional, duplicated or steering.
Check your server against these rules
Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.