Module 3 · Tool design and MCP integration · Chapter 9
Write tool descriptions that make Claude pick the right tool
- Claude picks a tool from its name and description alone. It cannot read your code.
- A good description says what the tool does, when to use it, when not to, what each parameter means, and what comes back.
- When two descriptions overlap, wrong picks follow. Overlap is the first thing to fix.
The picture: a description is a signpost at a fork. If two signs match, travellers guess.
Domain 2, Tool Design and MCP Integration (18 percent of the exam). Design tools Claude can choose correctly. You should be able to:
- Write descriptions that separate one tool from the next.
- State parameter meaning, units and formats, and return shape.
- Diagnose a wrong pick as a description problem first.
- Test tool choice on sample requests before shipping.
Harbor & Pine Outfitters is a made-up gear shop. Pine, its support agent from chapter 3, has four MCP tools: get_customer, lookup_order, process_refund, escalate_to_human.
- One Monday, Nadia Okafor finds refunds issued for customers Pine never verified. Pine called
lookup_order, thenprocess_refund, and skippedget_customer. - The cause was not the model.
lookup_orderwas described as "get details for a customer request", andget_customeras "get customer details for a request". Both signs pointed both ways.
- Why the description is the only guide Claude gets.
- The five parts every good description carries.
- Names and parameters as signals, with units and formats.
- Overlap and bloated returns.
- A worked example, a test set, and a break-it lab.
Next: what Claude actually sees.
Step 1: The description is the only guide
Why this step: most wrong picks are written into the tool list before the chat starts.
When a request arrives, Claude sees tool names, descriptions, parameter schemas and the conversation. It does not see your function bodies or your intent. If the right choice is not visible in that text, Claude guesses, and a guess at scale is a defect rate.
Think of each description as the label on a workshop drawer. The label is all you read before you pull.
Where the picture breaks down:
- A person can open the drawer and check. Claude commits to the call first.
- A vague label hurts its neighbours too, not just its own tool.
New to tool calling? Start with Structured outputs and tool calling, then come back.
- The customer asks for a refund on order 48213. Nothing in the request names a tool.
- The only routing information is the tool list: names, descriptions, parameter schemas.
- Claude compares the request against each description and picks the closest match. Close matches are where errors live.
- A clear
get_customerdescription says "use first", so verification happens first. - With distinct descriptions,
lookup_ordersupplies facts andprocess_refundacts on them.
Next: the five parts a description must carry.
Step 2: The five parts of a good description
Why this step: this checklist is what the exam expects you to apply.
- What it does, in one plain sentence. "Returns a verified customer ID for an email or phone number."
- When to use it. "Use first in any refund or order chat."
- When NOT to use it. "Do not use to get order details; use
lookup_order." Naming the neighbour separates the tools. - What each parameter means, with units and formats, covered in Step 3.
- What it returns. "Returns customer_id, name and verified flag." Claude plans its next step from this.
Skip a part and Claude fills the gap with a guess. The "when not" line is omitted most and does the most work, because picks are comparisons, not lookups.
Quick check:
Next: names and parameters are signals too.
Step 3: Names and parameters carry meaning
Why this step: Claude reads the whole definition, not just the description.
- Tool names should say action and object:
get_customer,lookup_order. A name likefetch_datacould mean anything. - Parameter names do the same work:
order_numberbeatsid, because three tools here take three different IDs. - Units and formats belong in the parameter description: "amount in US dollars, as a decimal, for example 129.00", "date as YYYY-MM-DD". A bare number invites a cents-versus-dollars error.
- Required versus optional should match reality. Marking a guessable field required forces Claude to invent it or stall.
A parameter with no unit is a bug waiting for a large refund: 12900 can mean $129.00 in cents or $12,900 in dollars, and only one is a quiet day for Lucia Fernandes in finance.
Next: overlap, and why what a tool returns matters.
Step 4: Overlap and bloated returns
Why this step: these two causes drive most of Pine's wrong picks.
Overlap first. Read descriptions side by side, not one at a time. If two could honestly claim the same request, rewrite until each owns a distinct job and names the other as the alternative. Test: cover the tool names. If you cannot tell them apart, neither can Claude.
Returns shape second. What a tool returns lands in the conversation and shapes the next pick. Pine's lookup_order returns about 40 fields, although only about 5 matter for returns: order number, item, total, delivery status and refund eligibility. The other 35 cost tokens on every later turn and bury the facts Claude needs, so the next pick gets worse, not just pricier. Chapter 3 priced this: the fat order record was the biggest cost driver in a four-turn refund. Trim the return to what the next step uses.
Quick check:
Do this: pick, then press the button.
Claude never sees your code. A vague name plus a vague description makes the tool a candidate for almost any request, so it steals picks from its neighbours and loses its own.
Next: what a rewrite is worth, in numbers.
Step 5: Worked example, the value of a rewrite
Why this step: a rewrite is cheap. This is how to argue for it with arithmetic.
Kavish logs Pine's first tool pick for a week, rewrites the four descriptions using Steps 2 to 4, and logs again. All rates here are made-up.
Worked example (made-up rates):
1. Before: wrong first pick on 11 percent of contacts. 14,000 × 0.11 = 1,540 mis-picks a month.
2. After: wrong first pick on 3 percent. 14,000 × 0.03 = 420 mis-picks a month.
3. Difference: 1,540 minus 420 = 1,120 fewer mis-picks a month.
4. Say 40 percent of mis-picks turn into a repeat contact: 1,120 × 0.40 = 448 repeat contacts avoided.
5. At a made-up $6 per contact: 448 × $6 = $2,688 a month.
Test before you ship. A rewrite is a claim, not a result. Build a small test set: 20 to 30 real-style requests, each labelled with the correct first tool, including hard neighbours ("Where is my parcel?" is lookup_order, not get_customer). Compare mis-pick rates for old and new descriptions, and rerun the set whenever a tool is added or renamed.
Next: the lab. Three of Pine's descriptions are broken. Find out how.
Step 6: Hands-on lab, break-it edition
Why this exercise: the exam shows you a tool list with planted flaws. Practise that skill on Pine.
Below is the tool list Pine shipped last month (illustrative). It has three planted flaws. Diagnose each, then rewrite so it cannot recur.
Lab: Pine shipped the four tool definitions printed in Step 6, and three flaws came with them: get_customer and lookup_order carry the same vague description, the refund amount has no unit, and escalate_to_human promises an approval it cannot give. This lab runs in your browser and needs JavaScript enabled.
In production reviews, tool lists drift: a tool gains a feature, its description does not, and picks quietly rot. Teams that treat descriptions as interface contracts, reviewed when the tool changes, avoid most of it. That is practice, not a measured statistic.
The Deployed Lab jobs page (snapshot 15 Nov 2026) lists 367 open FDE roles, median posted base about $243K, base pay only.
Next: the mix-ups that cost exam marks.
Mix-ups to avoid
- Blaming the model for a description bug. If two tools claim the same job, a better model still guesses. Fix the text first.
- Writing descriptions for humans. Marketing copy ("powerful, seamless refunds") carries no routing information.
- Skipping the "when not" line. A tool defined only by what it does will be picked for its neighbours' jobs too.
- Treating the return value as free. Every field is re-sent each turn. About 40 fields where 5 matter is a cost and clarity bug.
- Fixing picks with tool_choice. Forcing one tool can be right for a fixed step, but as a patch for overlap it hides the bug. Chapter 11 covers when forcing is right.
Next: the chapter quiz.
Chapter quiz
Five questions. Score 70% or more to complete this chapter.
Review this chapter in 5 minutes
Watch the whole chapter recapped: the five parts of a good description, overlap as the top cause of mis-picks, units as safety, and testing rewrites before shipping.
- Claude routes on names, descriptions and parameter schemas. It never sees your code.
- Five parts per description: what it does, when to use it, when not to, parameter meaning with units and formats, what it returns.
- Overlap is the top cause of wrong picks. Read descriptions side by side, names covered.
- Units are safety: an amount with no unit turned $129.00 into 12900.
- Returns shape the next pick: about 40 order fields where about 5 matter.
- Made-up example: mis-picks from 11 percent to 3 percent of 14,000 contacts avoids 1,120 mis-picks and about $2,688 a month.
- Test tool choice on a labelled set before shipping any rewrite.
Decision rule: on a wrong pick, read the two competing descriptions side by side before touching the model, prompt or tool_choice.
Independent exam preparation. Not affiliated with or endorsed by Anthropic.
Review
Glossary
- Tool description
- Text telling Claude what a tool does and when to pick it. Example: the "use first" line on
get_customer. - Mis-pick
- A call where a different tool was right. Example:
lookup_orderbefore identity checks. - Overlap
- Two descriptions claiming the same request. Example: both lookups saying "get details for a request".
- Boundary line
- A "do not use for X, use Y instead" sentence. Example: "Do not use for order details; use
lookup_order." - Parameter schema
- A tool's input definitions: names, types, required fields. Example:
order_number, a required string. - Unit
- What a number is measured in. Example: dollars, not cents.
- Return shape
- The fields a tool sends back. Example: 5 order fields, not about 40.
- Tool list
- All tool definitions sent with a request. Example: Pine's four MCP tools.
- Test set
- Requests labelled with the correct tool, used to measure picks. Example: 25 support requests.
- MCP tool
- A tool exposed through the Model Context Protocol. Example:
process_refund. See MCP.
Next: "Return structured errors from tools so agents can recover".