Task Statement 2.1·Domain 2 — 18% of exam
Tool Interface Design
Design effective tool interfaces with clear descriptions and boundaries
Official Exam Guide Objectives
The objectives below are quoted from Anthropic's Claude Certified Architect – Foundations exam guide, v1.1. Read the exam guide summary for the full blueprint.
Task 2.1: Design effective tool interfaces with clear descriptions and boundaries.
Knowledge of
- Tool descriptions as the primary mechanism LLMs use for tool selection; minimal descriptions lead to unreliable selection among similar tools
- The importance of including input formats, example queries, edge cases, and boundary explanations in tool descriptions
- How ambiguous or overlapping tool descriptions cause misrouting (e.g., analyze_content vs analyze_document with near-identical descriptions)
- The impact of system prompt wording on tool selection: keyword-sensitive instructions can create unintended tool associations
Skills in
- Writing tool descriptions that clearly differentiate each tool's purpose, expected inputs, outputs, and when to use it versus similar alternatives
- Renaming tools and updating descriptions to eliminate functional overlap (e.g., renaming analyze_content to extract_web_results with a web-specific description)
- Splitting generic tools into purpose-specific tools with defined input/output contracts (e.g., splitting a generic analyze_document into extract_data_points, summarize_content, and verify_claim_against_source)
- Reviewing system prompts for keyword-sensitive instructions that might override well-written tool descriptions
What You Need to Know
Tool descriptions are the PRIMARY mechanism LLMs use for tool selection. Not supplementary metadata. Not an afterthought. The mechanism. A model handed a toolkit reads the descriptions and decides from them — so where two tools are described in terms that could apply to either, there is nothing else for it to go on and the selection becomes a guess.
On a Messages API call there is no separate router or classifier sitting between the request and the tools: the API builds the tool definitions into a system prompt, and the model chooses from them the way a person chooses from a well-written or badly written menu. Three consequences follow, and the exam leans on each:
- A vague description is a root cause, not a cosmetic issue.
- Two tools with near-identical descriptions are indistinguishable by construction — few-shot examples cannot fully repair that.
- The cheapest, highest-leverage fix for a selection problem is nearly always to rewrite the descriptions.
What Makes a Good Tool Description
A production-grade tool description includes five elements:
- What the tool does — the purpose, stated so it could not be mistaken for another tool's
- What inputs it expects — types, formats, permitted ranges, and which fields are required rather than optional
- Example queries it handles well — concrete cases that show the model what a good match looks like
- Edge cases and limitations — what it will not do, and how it behaves when given something outside its range
- Explicit boundaries — the conditions under which a neighbouring tool is the right call instead
Here is the difference between a minimal and a production-grade description:
Minimal (causes misrouting):
get_customer: "Gets customer info" lookup_order: "Gets order info"
Production-grade (reliable selection):
get_customer: "Finds one customer account, given an email address, a phone number or a customer ID. Returns the profile: name, contact details, account status and loyalty tier. Reach for this when the question is who you are dealing with. Anything about a particular order belongs to lookup_order, not here."
lookup_order: "Returns one order, given an order number (format: #NNNNN) or a tracking ID. Covers current status, the items on it, shipping detail and whether it is eligible for a refund. Reach for this when the customer names an order. Establishing who the customer is belongs to get_customer, not here."
Read the second pair as a decision procedure rather than documentation. Each entry states which identifiers it accepts, what comes back, and — the part that does the real work — the circumstances under which the other tool is the correct choice. There is no case where both look equally applicable.
Both descriptions fit — that's why it misroutes, step 1: A query arrives: check my order #12345
What each sentence is for
The exam guide's skill wording adds one thing to the five elements: a description should differentiate each tool's "purpose, expected inputs, outputs, and when to use it versus similar alternatives". Stating what comes back matters because it lets the model plan its next step. Mapped onto lookup_order:
| Component | What it gives the model | Fragment |
|---|---|---|
| Purpose | what the tool does | "Returns one order…" |
| Input format | removes format guessing | "…given an order number (format: #NNNNN) or a tracking ID" |
| Output | lets the model plan the next step | "Covers current status, the items on it, shipping detail and whether it is eligible for a refund" |
| When to use | the positive selection signal | "Reach for this when the customer names an order" |
| When not to use | the negative signal, naming the sibling that is right instead | "Establishing who the customer is belongs to get_customer, not here" |
The negative boundary is the element weak descriptions almost always omit, and for two tools that are being confused it is the one that speaks to the choice directly: two tools can each be described richly in isolation and still leave the model with no rule for picking between them. A fuller description also covers the awkward cases: what the output leaves out (for example, that get_customer returns recent order IDs only, not order contents) and what happens at an edge (for example, that when several accounts match, all are returned and the agent should ask the customer for another identifier instead of picking one).
The Misrouting Problem
Descriptions that overlap produce selection that wavers. Q2 in the sample set builds on exactly this: get_customer and lookup_order described in one line each, and an agent sending "check my order #12345" to the wrong one.
The exam tests whether you can spot the correct fix. Four plausible options, three of them wrong:
- Expand descriptions — correct. It acts on the thing that actually decides selection, and costs an afternoon of writing.
- Few-shot examples — wrong. Examples demonstrate the right choice case by case while leaving the descriptions just as ambiguous, so the confusion persists everywhere the examples do not reach.
- Routing classifier — wrong. It builds infrastructure to make a decision the model is already equipped to make, and sets aside the language understanding you are paying for.
- Tool consolidation — wrong as a first step. Merging tools is a legitimate architectural move, but it is a redesign, and a redesign is not the proportionate answer to a description that needed two more sentences.
Consolidation is not a foolish option; what rules it out is the stem. The discriminators are the words "first step" and the fact that the immediate problem is inadequate descriptions. Change the stem to say the descriptions have already been rewritten and selection is still unreliable, and a structural change such as consolidation becomes a reasonable answer.
A pattern runs through these, and it is worth carrying into other items: the exam consistently favours low-effort, high-leverage fixes. Better descriptions before routing classifiers. Scoped access before full access. Community servers before custom builds.
Three ways to overshoot a two-sentence fix, step 1: Expand the descriptions — an afternoon of writing
Tool Splitting
A tool with a broad remit cannot be described precisely, because there is no single thing it does. Splitting it into purpose-specific tools gives each one a description that can be exact.
Before splitting:
analyze_document: "Runs analysis over a document and returns what it finds"
After splitting:
extract_data_points: "Extracts structured data fields (dates, amounts, names) from a document"
summarize_content: "Produces a concise summary of a document's key arguments and conclusions"
verify_claim_against_source: "Checks whether a specific claim is supported by the source document, returning supporting/contradicting evidence"
Each of the three now maps onto a request a user might actually make, which is what allows the model to choose between them on the strength of what was asked.
A tool with no single job can't be described precisely, step 1: analyze_document — runs analysis, returns what it finds
The guide's wording is "purpose-specific tools with defined input/output contracts", and the contract is what does the work beyond the name. One reasonable set of contracts:
| Tool | Input | Output |
|---|---|---|
extract_data_points | document reference plus the list of fields wanted | field/value pairs, each with where in the document it came from |
summarize_content | document reference plus a target length | a prose summary |
verify_claim_against_source | a claim plus a document reference | supported, contradicted or not found, with the supporting excerpt |
With a narrow contract the schema itself communicates intent, the result is predictable for whatever step consumes it, and each tool's errors mean something specific. A generic tool doing three jobs returns three shapes, which is why "inconsistent output" in a stem points at splitting.
Tool Renaming for Clarity
Where two names invite confusion, renaming resolves it at the interface without touching anything underneath. Turn analyze_content into extract_web_results, give the description a web-specific framing, and the tool stops competing for requests that were never meant for it — no implementation change involved.
The rename is not cosmetic, because the name is part of what the model selects on. analyze_content invites use on anything that counts as "content", which is everything. Generic verbs do this in general: names beginning analyze_, process_ or handle_ invite selection for any request. The guide's own example of the failure is analyze_content beside analyze_document with near-identical descriptions, and the repaired tool is disjoint from its sibling by name and by description:
{
"name": "extract_web_results",
"description": "Extracts structured findings from web search result payloads (title, snippet, URL, rank). Input is the raw search result array. Returns one finding per result with the claim, an excerpt, the source URL and the publication date when present. Does not accept file paths or document text; use the document tools for stored documents."
}Writing longer descriptions under the old names is the weaker move: the descriptions would be fighting two names that still advertise the same job.
Rename, Split or Consolidate
For overlapping tools there are three structural moves, and two of them point in opposite directions:
| Move | Use it when | Example |
|---|---|---|
| Rename and re-describe | two tools do different jobs but their names and descriptions do not say so | analyze_content becomes extract_web_results |
| Split | one generic tool does several jobs with different inputs and outputs | analyze_document becomes three purpose-specific tools |
Consolidate into one tool with an action parameter | several tools are facets of one operation and the model keeps wavering between them | create_pr, review_pr and merge_pr become one tool |
System Prompt Interactions
A system prompt can quietly overrule descriptions you have just spent time on. An instruction like "always check customer details before proceeding" plants a keyword association strong enough to pull customer-adjacent requests toward get_customer, whatever the tool entries say about boundaries.
So the description work is not finished until you have reread the system prompt for phrasing that competes with it. The failure is subtle, because both halves look correct in isolation, and the exam tests it.
A prompt can override a description it never touches, step 1: Both tools already have clear, bounded descriptions
Identity framing does it too
The competing phrase need not be an instruction. Take a system prompt that opens "You are a document analysis assistant. Always analyze the document thoroughly before responding." A user then asks what the web search returned about an outage. The prompt has tied the word "document" and the verb "analyze" to the assistant's identity, so there is a standing pull toward analyze_document even though extract_web_results is correct, and it can survive a well-written description because the system prompt frames the whole task.
Three signs in a stem
- The descriptions were rewritten and are good, yet one tool is still over-selected.
- That tool's name, or the word for its domain, appears in the system prompt.
- The misrouting is systematic (always toward the same tool), not random.
The fix
Audit the system prompt for words that name or evoke a specific tool and reword them neutrally, then measure again to confirm the pull has gone. For the example above: "You are a research assistant. Gather evidence from whichever source the request concerns — web results, stored documents, or both — and choose the tool whose description matches the source type you are working with."
A working rule: the system prompt sets the goal; the tool descriptions decide the routing. When the prompt starts routing by implication the two compete, and the guide's warning is that the prompt wording "might override well-written tool descriptions".
Checking the Fix Worked
A description rewrite is a change you can score. The method needs three things held constant between the before and after runs:
- A fixed query set with the expected tool written beside each query. The expected tool is what turns a log into a score. Mix clear cases in both directions with ambiguous phrasings ("check my account", "where is my package?"): only-ambiguous queries have no control cases, and queries from one side only cannot show that a new boundary sentence broke selection of the other tool.
- The same queries on both runs. Freshly generated or extra queries make the two numbers incomparable.
- The same system prompt. Dropping it for the second run changes a second variable and hides the interference described above.
Going beyond the exam guide, a tool set can also be checked offline before any model call: confirm each description carries the components in the table above and runs to at least three or four sentences; compare the wording of each pair of descriptions (not their names, since two tools with distinct names can still read alike) and treat a pair that shares most of its content words as a misrouting risk; and scan the system prompt for words that also appear in a tool name. Such a check is a prompt to look, not a measurement of selection.
Deep Dive
The tool definition contract in the Messages API
A client tool in the tools array is defined by a small set of fields:
| Field | Rule |
|---|---|
name | must match the regex ^[a-zA-Z0-9_-]{1,128}$ |
description | "A detailed plain text description of what the tool does, when it should be used, and how it behaves." This is the selection mechanism |
input_schema | a JSON Schema object defining the expected parameters |
input_examples | optional: an array of example input objects, each of which must be valid against the tool's input_schema |
Further optional properties exist on a tool definition, among them strict, cache_control, defer_loading and allowed_callers.
Anthropic's own ranking of these is unambiguous: "Provide extremely detailed descriptions. This is by far the most important factor in tool performance." Note also that when you pass tools, "the API constructs a special system prompt from the tool definitions, tool configuration, and any user-specified system prompt" — tools are never free, which is why a tool that earns its place must be described well enough to be chosen correctly. It also means the definitions and your own system prompt reach the model together, which is how wording in one can compete with the other.
{
"name": "lookup_order",
"description": "Retrieves order details by order number (format: #NNNNN) or tracking ID…",
"input_schema": {
"type": "object",
"properties": { "order_id": { "type": "string" } },
"required": ["order_id"]
}
}Sourceplatform.claude.com › define-toolsfetched 2026-11-19
What the API documentation asks of a description
The same page lists what a description should explain:
- what the tool does
- when it should be used, and when it should not
- what each parameter means and how it affects the tool's behaviour
- any important caveats or limitations, such as what information the tool does not return
It adds: "Aim for at least 3–4 sentences for each tool description, more if the tool is complex." Its own good example says what the tool does, constrains the input, states what is returned, says when to use it, and ends with a limit: "It will not provide any other information about the stock or company." Its poor example is one line: "Gets the stock price for a ticker."
Three further practices on that page bear on this task statement:
- Descriptions first, examples second. "Clear descriptions are most important", but for tools with complex inputs, nested objects or format-sensitive parameters,
input_examplessupplies schema-validated examples. - Consolidation. "Rather than creating a separate tool for every action (
create_pr,review_pr,merge_pr), group them into a single tool with anactionparameter. Fewer, more capable tools reduce selection ambiguity". - Namespacing. When tools span several services or resources, prefix names with the service (
github_list_prs,slack_send_message), which "makes tool selection unambiguous as your library grows".
Sourceplatform.claude.com › define-toolsfetched 2026-11-19
The MCP tool definition adds an output contract
An MCP tool definition carries name (unique identifier), description (human-readable description of functionality), and inputSchema (JSON Schema defining expected parameters), plus optional title (a human-readable name for display), icons, outputSchema (JSON Schema defining the expected output structure), and annotations ("Optional properties describing tool behavior"). Where the Messages API constrains only the input, MCP lets you pin the output too: when an outputSchema is declared, the server must return structured results that conform to it, in the result's structuredContent field. Annotations are the slot for behavioural metadata, and the schema defines four hints: readOnlyHint, destructiveHint, idempotentHint and openWorldHint. Treat them as advisory, a claim made by the server and not a guarantee: the spec warns that "clients MUST consider tool annotations to be untrusted unless they come from trusted servers."
MCP's design guidance mirrors the splitting advice in this lesson: "Each tool performs a single operation with clearly defined inputs and outputs." Clients discover tools with tools/list and execute them with tools/call. Tool names should be 1 to 128 characters and unique within a server. These statements are from the 2026-07-28 revision of the specification, the latest published.
Sourcesmodelcontextprotocol.io › toolsmodelcontextprotocol.io › schemamodelcontextprotocol.io › server-conceptsfetched 2026-11-19
Same shape, different field names: API versus MCP
A tool definition looks much the same on both surfaces, but the field names differ:
| Claude API tool | MCP tool | |
|---|---|---|
| Name and description | name, description | name, description |
| Input schema | input_schema (snake_case) | inputSchema (camelCase) |
| Output schema | none | outputSchema (optional) |
| Display title | none | title (optional) |
| Behaviour hints | none | annotations (optional) |
| Worked inputs | input_examples (optional) | none |
Two things follow for answer options. An option that shows inputSchema in a Messages API request, or input_schema in a tools/list response, is wrong on the field name alone, however good the description inside it. And outputSchema has no Messages API equivalent, so "declare an outputSchema on the tool" is not available for an API-side tool. The nearest API-side control is strict: true on the tool definition, which "guarantees Claude's tool inputs match your JSON Schema"; shaping the assistant's own reply is the job of structured outputs, covered under task 4.3.
Sourcesplatform.claude.com › define-toolsmodelcontextprotocol.io › toolsplatform.claude.com › strict-tool-usefetched 2026-11-19
The description has a hard budget in Claude Code
Claude Code cuts a tool description or server instructions that run past its default limits, "and Claude sees only the text before the cut":
| Text | Default limit |
|---|---|
| Server instructions, and the description of a tool that loads upfront | 4,096 characters |
| The description of a tool that Claude loads through tool search | 16,384 characters |
That is a real ceiling on "just write a longer description": the documentation says to keep descriptions and instructions concise and "put critical details near the start". A boundary statement buried in the fifth paragraph may simply never reach the model. The limits have moved: before Claude Code v2.1.296 the shorter limit was 2,048 characters, so older material quotes a 2KB figure. CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH sets one number of characters for both limits.
Tool search compounds this. It "is enabled by default: MCP tools are deferred and discovered on demand", and "only tool names and server instructions load at session start". When tool search matches Claude's query against a description it reads only the part within the shorter limit, so the words Claude would search for belong near the start too. Because the search is driven by text, server authors are told to write server instructions that explain what category of tasks the tools handle, when Claude should search for them, and the key capabilities the server provides.
Sourcecode.claude.com › mcpfetched 2026-11-19
Consolidate workflows; do not wrap endpoints; namespace what remains
Anthropic's tool-writing guidance identifies the default failure: "A common error we've observed is tools that merely wrap existing software functionality or API endpoints." The recommended shape is a small set of workflow tools:
- Instead of
list_users,list_eventsandcreate_event, buildschedule_event, which finds availability and schedules in one call. - Instead of
get_customer_by_id,list_transactionsandlist_notes, buildget_customer_context, which compiles the relevant information at once. - Instead of
read_logs, buildsearch_logs, returning only relevant lines plus surrounding context. - The same logic drives the address-book example:
search_contactsormessage_contactbeats paging throughlist_contacts, because reading an address book page by page is brute-force search.
"More tools don't always lead to better outcomes"; the advice is "building a few thoughtful tools targeting specific high-impact workflows, which match your evaluation tasks and scaling up from there", and "Make sure each tool you build has a clear, distinct purpose." Where several tools genuinely must coexist, namespacing delineates them: by service (asana_search, jira_search) and by resource (asana_projects_search, asana_users_search). Anthropic found "selecting between prefix- and suffix-based namespacing to have non-trivial effects on our tool-use evaluations", so it is worth testing rather than assuming. Choosing tools whose names reflect natural subdivisions of tasks also reduces the number of tools and tool descriptions loaded into context, and moves agentic computation out of the agent's context and back into the tool calls themselves.
This post's "consolidate" means one tool that carries out a whole workflow instead of several endpoint wrappers. It is a different move from merging two confusable lookups as a first response to thin descriptions, which is the option the exam marks wrong.
Sourceanthropic.com › writing-tools-for-agentsfetched 2026-11-19
What a good description actually contains
Two independent Anthropic sources converge on the same checklist. From the tool-design guidance: "A good tool definition often includes example usage, edge cases, input format requirements, and clear boundaries from other tools," and tool definitions "should be given just as much prompt engineering attention as your overall prompts." The test to apply is empathy: "Put yourself in the model's shoes. Is it obvious how to use this tool, based on the description and parameters, or would you need to think carefully about it? If so, then it's probably also true for the model."
From the tool-writing guidance: write it as you would describe the tool to a new hire — make the implicit context explicit (specialised query formats, definitions of niche terminology, relationships between underlying resources) and enforce expected inputs and outputs with strict data models. Two concrete mistake-proofing moves:
- Name parameters unambiguously —
user_id, notuser. - Make the schema prevent the mistake. (From the agent-building guidance.) Anthropic "changed the tool to always require absolute filepaths—and we found that the model used this method flawlessly" — the relative-path errors disappeared because the interface made them impossible.
Sourcesanthropic.com › building-effective-agentsanthropic.com › writing-tools-for-agentsfetched 2026-11-19
Descriptions are measurable, so iterate on them with evals
Description quality is not a matter of taste — it shows up in numbers.
- Claude Sonnet 3.5 achieved state-of-the-art performance on SWE-bench Verified "after we made precise refinements to tool descriptions, dramatically reducing error rates and improving task completion".
- An agent that tested flawed tools and rewrote their descriptions produced "a 40% decrease in task completion time for future agents using the new description".
- "Even small refinements to tool descriptions can yield dramatic improvements."
- The diagnostic signal runs the other way too: "lots of tool errors for invalid parameters might suggest tools could use clearer descriptions or better examples", and lots of redundant calls suggests pagination or token-limit parameters need rightsizing.
A real bug from this process: on launch, Claude was needlessly appending 2025 to the web search tool's query parameter, biasing results — fixed by improving the tool description, not by changing the model or adding a router.
Sourcesanthropic.com › writing-tools-for-agentsanthropic.com › multi-agent-research-systemfetched 2026-11-19
Quick Reference
| Fact | Value |
|---|---|
Tool name regex (Messages API) | ^[a-zA-Z0-9_-]{1,128}$ |
| Required client tool fields | name, description, input_schema (JSON Schema); input_examples optional |
| MCP tool definition fields | name, description, inputSchema; optional title, icons, outputSchema, annotations |
| MCP tool discovery / execution | tools/list / tools/call |
| Single most important factor in tool performance | Extremely detailed descriptions |
| Field-name casing | API: input_schema. MCP: inputSchema. outputSchema, title and annotations exist only in MCP |
| MCP annotation hints | readOnlyHint, destructiveHint, idempotentHint, openWorldHint; untrusted unless the server is trusted |
| Claude Code description limits | 4,096 characters for server instructions and upfront tool descriptions; 16,384 for a tool loaded through tool search; text past the cut is not seen, so put critical details first |
| Tool search default | Enabled — MCP tools are deferred and discovered on demand; only tool names and server instructions load at session start |
| API docs' description checklist | What it does · when to use it and when not · what each parameter means · caveats and limits; at least 3–4 sentences |
| Most often omitted element | The negative boundary: when not to use the tool, and which sibling to use instead |
| Rename, split or consolidate | Different jobs, similar names: rename. Different input/output contracts: split. Same contract, different verb: one tool with an action parameter |
| System prompt versus descriptions | The prompt sets the goal; the descriptions decide routing. Good descriptions plus systematic over-selection of one tool: audit the prompt |
| Scoring a rewrite | Same queries, same expected tools, same system prompt, before and after |
| Five elements of a production description | Purpose · inputs with formats · example queries · edge cases/limits · boundaries vs similar tools |
| Anthropic's own description checklist | Example usage, edge cases, input format requirements, clear boundaries from other tools |
| Design rule | Build workflow tools, not API wrappers (schedule_event, get_customer_context, search_logs) |
| Namespacing forms | By service (asana_search) and by resource (asana_projects_search); prefix vs suffix has measurable effects |
| Parameter naming | user_id, not user; mistake-proof the schema (require absolute filepaths) |
| Evidence descriptions matter | SWE-bench Verified SOTA from description refinements; 40% faster task completion after rewrite |
| Diagnostic: many invalid-parameter errors | Descriptions or examples are unclear — fix the description |
| MCP annotations | Disclose which tools need open-world access or make destructive changes |
Exam Traps
More wrong answers, and why each fails
| Tempting answer | Why it fails | Choose instead |
|---|---|---|
| Tighten each tool's schema so it rejects the other tool's identifier format | Schema rejection happens after the model has chosen; the wrong tool is still selected and now returns an error | Boundary sentences in the descriptions, which act at selection time |
| Describe only the normal case | Edge cases and boundaries are where misrouting happens | State limits and what the tool does at the edges |
| Leave two descriptions that differ only in a noun | They are indistinguishable by construction | Rename and re-describe, or split |
| Append every misrouted phrasing from the logs to a description as examples | Generalises poorly to wordings the logs never contained, and spends description length the boundary needs | A few representative example queries plus the boundary |
| Delete the system prompt because the descriptions now carry the routing | The prompt carries behaviour that has nothing to do with selection; one biasing phrase is the problem | Reword the biasing phrase and measure again |
| Move the boundary statements into the system prompt so the rules sit in one place | Takes them out of the text the model selects on | Keep boundaries in the descriptions; keep the prompt neutral |
| Add an instruction to read every tool description carefully before choosing | A request for compliance layered on top of the competing phrase, which is still there | Remove the competing phrase |
How This Is Tested
| Stem signal | Answer | Wrong-answer pattern beside it |
|---|---|---|
| Two tools with minimal descriptions and similar identifiers; "first step" | Expand both descriptions with input formats, example queries, edge cases and boundaries | Few-shot examples, a routing layer, consolidation |
Two tools with near-identical names and descriptions (analyze_content, analyze_document) | Rename one and make its description domain-specific, or split the generic one | A classifier, or merging both into one broader tool |
| Descriptions are good but one tool is still over-selected | Audit the system prompt for keyword associations | Adding yet more detail to the descriptions |
| One generic tool used for several jobs, with inconsistent output | Split into purpose-specific tools with defined input/output contracts | Few-shot examples, or a longer name on the same tool |
| A pre-turn layer that parses user input and pre-selects the tool | Reject it on sight | It is offered as the "reliable" or "deterministic" option |
Official sample question 2, option by option
The stem: production logs show the agent frequently calls get_customer when users ask about orders ("check my order #12345") instead of lookup_order. Both tools have minimal descriptions ("Retrieves customer information" / "Retrieves order details") and accept similar identifier formats. "What's the most effective first step to improve tool selection reliability?"
| Option | Verdict | The official explanation |
|---|---|---|
| A. "Add few-shot examples to the system prompt demonstrating correct tool selection patterns, with 5-8 examples showing order-related queries routing to lookup_order." | Wrong | Few-shot examples "add token overhead without fixing the underlying issue" |
| B. "Expand each tool's description to include input formats it handles, example queries, edge cases, and boundaries explaining when to use it versus similar tools." | Correct | "Tool descriptions are the primary mechanism LLMs use for tool selection"; this "directly addresses this root cause with a low-effort, high-leverage fix" |
| C. "Implement a routing layer that parses user input before each turn and pre-selects the appropriate tool based on detected keywords and identifier patterns." | Wrong | "over-engineered and bypasses the LLM's natural language understanding" |
| D. "Consolidate both tools into a single lookup_entity tool that accepts any identifier and internally determines which backend to query." | Wrong | "a valid architectural choice but requires more effort than a "first step" warrants when the immediate problem is inadequate descriptions" |
Option B is almost word for word the guide's second Knowledge bullet for this task. Option D is the one to study: the explanation concedes it is valid and rejects it on proportionality alone.
Practice Scenario
Your support agent gained escalate_to_human last sprint, described as "Use when the customer needs assistance." Since then roughly one routine order-status question in four is handed to a person before lookup_order has run at all, and first-contact resolution has fallen below target. What's the most effective first step?
Practice Questions
Exam simulator
Question 1 of 13
Scenario · Developer Productivity with Claude
Your agent has a get_file_history tool described as "Returns the commit history for a file." About a third of its calls fail because the agent passes absolute paths, while the tool expects paths relative to the repository root. After a failure the agent falls back to running git log through Bash, which is slower and floods its context. What change would most effectively address this?
Sources
- Claude Certified Architect Foundations Exam Guide — Domain 2, Task Statement 2.1 — Anthropic
- Tool use with Claude — Anthropic
- Claude Docs — Define Tools — Anthropic
- Strict tool use — Anthropic
- Tools — MCP Specification, revision 2026-07-28 — Model Context Protocol
- Schema Reference — MCP Specification, revision 2026-07-28 — Model Context Protocol
- MCP Specification — Server Concepts — Anthropic
- Claude Code — Mcp — Anthropic
- Anthropic Engineering — Writing Tools For Agents — Anthropic
- Anthropic Engineering — Building Effective Agents — Anthropic
- Anthropic Engineering — Multi Agent Research System — Anthropic