Deployed Lab

Module 3 · Tool design and MCP integration · Chapter 9

Write tool descriptions that make Claude pick the right tool

19 min1 clickable picture1 break-it lab1 hands-on lab1 predict, 2 quick quizzes, 5-question final quiz5-min video review
In 30 seconds

The picture: a description is a signpost at a fork. If two signs match, travellers guess.

Exam objective: Task statement 2.1

Domain 2, Tool Design and MCP Integration (18 percent of the exam). Design tools Claude can choose correctly. You should be able to:

The cold open

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.

The plan for this chapter
  1. Why the description is the only guide Claude gets.
  2. The five parts every good description carries.
  3. Names and parameters as signals, with units and formats.
  4. Overlap and bloated returns.
  5. 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:

New to tool calling? Start with Structured outputs and tool calling, then come back.

How a description drives a tool pick A request reaches Claude with the tool descriptions. Claude compares them, picks one tool, and follows the refund path: verify, look up, refund. Request"Refund order48213, please" Descriptionsnames, text,parameters Claude picksone toolper step get_customerverify first lookup_orderorder facts process_refundmoney moves
  1. The customer asks for a refund on order 48213. Nothing in the request names a tool.
  2. The only routing information is the tool list: names, descriptions, parameter schemas.
  3. Claude compares the request against each description and picks the closest match. Close matches are where errors live.
  4. A clear get_customer description says "use first", so verification happens first.
  5. With distinct descriptions, lookup_order supplies facts and process_refund acts on them.
RequestTool listClaudeTools

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.

  1. What it does, in one plain sentence. "Returns a verified customer ID for an email or phone number."
  2. When to use it. "Use first in any refund or order chat."
  3. When NOT to use it. "Do not use to get order details; use lookup_order." Naming the neighbour separates the tools.
  4. What each parameter means, with units and formats, covered in Step 3.
  5. 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.

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.

Field note, November 2026

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

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.

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_order before 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".