The same model, given two versions of the same tool, will use one flawlessly and fumble the other constantly. The difference is never the model's competence. It is whether the tool was designed for an LLM to call or ported straight from an internal API that assumed a human developer reading the docs. Tool design is the skill of writing that interface well, and it is 18% of the CCA-F exam under Tool Design & MCP Integration.
This guide covers the design decisions that separate a tool Claude uses reliably from one it misuses. For the protocol-level architecture (transports, primitives, N×M), pair it with the MCP architecture guide.
Find out where you stand first
Take the free CCA-F sample questions cold (no signup, real exam style), then read on with your gaps in mind. When you are ready for full rehearsal, Preporato's CCA-F practice tests include 6 full-length exams (390 questions in total, domain-proportional, every answer explained) for a one-time $19.99 with lifetime access.
The Core Principle: The Description Is the Interface
A tool call has no documentation the model reads separately. The tool's name, its description, and its input schema are everything the model knows about when and how to use it. Design them as the primary interface, because to the agent, they are the only interface.
This inverts normal API design. A REST endpoint can be terse because a developer will read the docs; an MCP tool must be self-explanatory because the only "developer" is a model deciding in the moment whether this is the right tool and what to pass it.
Try 15 CCA-F practice questions free
They come from the CCA-F practice tests, and each option shows its explanation once you answer.
- 6 timed practice exams
- Every answer explained
- A score for each domain
- $19.99 one-time
Naming and Descriptions
Names should say what the tool does in the agent's terms: search_customer_orders, not query_v2 or execCmd. The model routes on the name first.
Descriptions carry the load. A good description states what the tool does, when to use it (and when not to), what it returns, and any preconditions. The exam contrasts:
- Weak: "Gets order data."
- Strong: "Returns a customer's orders from the last 90 days, most recent first. Use when the user asks about recent purchases or order status. Does not include archived orders older than 90 days; use
search_order_archivefor those."
The strong version prevents three failure modes at once: using the tool for the wrong job, expecting data it does not return, and not knowing the sibling tool exists. Descriptions are where you encode the judgment a human integrator would otherwise have to supply.
Input Schemas That Guide the Model
MCP tools declare inputs as JSON Schema, and the schema is both validation and instruction:
- Constrain with types and enums. A
statusparameter typed asenum: ["pending","shipped","delivered"]tells the model exactly what values are legal. A bare string invites hallucinated values. - Describe every field. Per-parameter descriptions resolve ambiguity:
"cursor": "Pagination token from a previous response's next_cursor; omit for the first page." - Make required actually required. Mark the fields the tool cannot function without, so the model does not call it half-populated.
- Prefer few, meaningful parameters. A tool with fourteen optional knobs is one the model configures wrongly. Split it or set sane defaults.
Wire structured output and function calling on real models
Schemas stop being abstract once you enforce them: build structured-output and function-calling flows against NVIDIA NIM and watch the schema shape the model's calls.
Error Handling: Talk to the Model, Not the Log
When a tool fails, its error message goes back into the model's context, and the model must decide what to do next. This reframes error design entirely: errors are prompts, not log lines.
- Actionable beats accurate-but-opaque. "Error 422" teaches the model nothing. "Invalid date format for
start_date; expected YYYY-MM-DD, received '07/10/2026'" tells it exactly how to retry. - Distinguish retryable from fatal. A rate-limit error the model should back off and retry reads differently from a "customer not found" the model should surface to the user. Say which.
- Fail loudly on ambiguity. A tool that silently returns empty results when the input was malformed teaches the model that malformed input is fine. Return an error that names the problem.
This is a favorite exam angle because it is counterintuitive to developers used to writing errors for humans reading a terminal.
Three questions from the CCA-F practice tests
A new developer added their personal preferences (tab width 2 and a custom import-sorting style) to the project's committed CLAUDE.md. Claude Code now applies them for everyone, across all packages, and they conflict with the team's formatter settings. What is the correct resolution?
[object Object]
Correct. Personal preferences belong in user-level instructions (~/.claude/CLAUDE.md), or in CLAUDE.local.md for one project, which apply to that developer and are not shared. The project CLAUDE.md goes back to holding team standards.
B. Path rules scope instructions to files and apply to anyone working on them, so teammates editing those files still get the preferences, and the rules are committed.
C. Ignoring the project CLAUDE.md removes the team's shared standards from version control and leaves everyone maintaining copies that drift.
D. Package-level CLAUDE.md files are shared too, so the preferences would apply to everyone working in those packages.
Your contract extractor uses tool use with a strict JSON schema, and each output is valid. Yet governing_law sometimes holds the counterparty's home jurisdiction instead of the governing-law clause, and termination_notice_days sometimes holds the 30-day payment term. The contracts run about 12 pages. QA asks why the schema did not prevent this. What is the correct explanation?
[object Object]
Correct. Schemas, even in strict mode, guarantee valid JSON, the declared types and the required fields. "Delaware" is a valid string and 30 a valid integer, wherever they came from. Catching values from the wrong clause needs semantic checks, such as requiring the source excerpt for each field and validating that it is the right kind of clause.
A. Field descriptions help the model find the right clause, but no schema feature checks where a value came from.
B. Twelve-page contracts fit easily in the context window, so nothing is truncated. The values come from the documents, from the wrong clauses.
D. Strict tool use is already on. It enforces structure and has no notion of which clause a value came from.
Your wire-transfer agent must screen each recipient against a sanctions list before calling execute_transfer, and the system prompt says so firmly. In red-team tests, about 1 in 300 transfers skipped screening when the requester stressed urgency ("the CEO needs this in 10 minutes"). Compliance requires screening on every transfer, with no exceptions. What is the most reliable change?
[object Object]
Correct. A programmatic prerequisite looks at recorded state, which no amount of urgency in the conversation can change: the transfer tool refuses to run unless a passing screen for the same recipient is recorded, and returns an error telling the agent to screen first.
A. The final decision still rests on Claude reconciling two outputs, so the same urgency framing can tip it toward approving.
B. Forcing a tool on each turn breaks normal conversation, is not supported on every model and still does not tie the screening result to the recipient being paid.
C. Stronger wording and examples lower the skip rate, but they keep screening in the model's hands, which is what urgency framing exploits. A zero-tolerance rule needs enforcement outside the model.
Full CCA-F set: 6 timed exams, every answer explained, $19.99 one-time.
See the practice testsToken-Efficient Results
Every tool result consumes context (the context-management budget the reliability domain cares about). Design results for the agent's window:
- Return what the task needs, not the whole record. A 200-field customer object where the agent needed a name and email is 198 fields of context debt.
- Support pagination and filtering. Let the model ask for the next page rather than dumping 500 rows it must then wade through.
- Prefer structured, parseable shapes. Consistent JSON the model can reliably read beats prose the model must interpret.
A tool that returns a tight, relevant payload keeps the agent sharp; one that returns everything "just in case" fills the window and degrades every subsequent turn.
Consolidation vs Proliferation
A senior design question, and an exam one: how many tools? Too few and each is overloaded with modes and flags; too many and the model struggles to pick. The guidance:
- Consolidate tools that are variations of one action behind a single well-parameterized tool when the parameters are clear.
- Split tools when combining them would force a confusing mega-schema or mix safe reads with dangerous writes.
- Name and describe each so the set reads as a coherent toolkit, with descriptions that cross-reference siblings ("for archived orders, use...").
How This Shows Up on the Exam
- A tool is called for the wrong situations. What is the highest-leverage fix? (Sharpen the description's "use when / do not use when.")
- The model keeps passing invalid enum values. What prevents it? (Constrain the schema with an
enum; describe the field.) - A tool fails and the agent gives up instead of retrying a fixable input. Why? (The error was opaque; rewrite it to be actionable and to signal retryability.)
- An agent's context fills after a few tool calls. What in the tool design is at fault? (Results return full records; return only needed fields with pagination.)
The Claude Code course builds real MCP tools in Level 6, and Preporato's CCA-F practice tests carry the Tool Design domain at its 18% weight across 390 explained questions.
Key Takeaways
- The name, description, and schema are the entire interface the model sees; design them first
- Descriptions must state what, when-to-use, when-not-to, and what-returns
- Constrain schemas with types, enums, and per-field descriptions; keep parameters few
- Errors are prompts to the model: make them actionable and signal retryable vs fatal
- Return only what the task needs; paginate and filter to protect the context window
- Balance consolidation against proliferation so the toolkit reads coherently
Continue with structured output and prompt engineering for the model-side half of tool use.
Sources:
- Anthropic: Writing Effective Tools for Agents
- Model Context Protocol Specification
- Anthropic Academy
Last updated: July 10, 2026
