CCAR-F tool design and MCP (18%)

Updated December 2, 2026

Domain 2 of CCAR-F, Tool Design & MCP Integration, carries 18% of the exam. It covers how you describe tools so Claude picks the right one, how tools report failure, how many tools each agent should hold, how MCP servers are wired into Claude Code, and when to use the built-in file tools. Anthropic’s guide lists five task statements; this page summarises them in my own words.

The five task statements

TaskTopic
2.1Tool interfaces with clear descriptions and boundaries
2.2Structured error responses for MCP tools
2.3Distributing tools across agents, tool_choice
2.4Integrating MCP servers into Claude Code and agents
2.5Built-in tools: Read, Write, Edit, Bash, Grep, Glob

Tool descriptions are the interface

Models choose tools mainly from their descriptions. A one-line description such as retrieves customer information leaves a model guessing between similar tools. The guide wants input formats, example queries, edge cases and boundaries: when to use this tool and when to use a neighbour. Overlapping descriptions cause misrouting; the fix is to rename tools and rewrite descriptions to remove functional overlap, or to split a generic tool into purpose-specific ones with clear input and output contracts. Also watch the system prompt: keyword-sensitive instructions can create unintended tool associations that override good descriptions.

Errors the agent can act on

MCP signals failure with an isError flag. A generic message like operation failed prevents recovery. The guide distinguishes transient errors (timeouts), validation errors, business errors (policy violations) and permission errors, and wants structured metadata: an error category, an isRetryable flag and a human-readable explanation. Business-rule failures should say they are not retryable and give a customer-friendly reason. Subagents should recover locally from transient failures and propagate only what they cannot fix, with partial results and what was attempted. Keep access failures separate from valid empty results: a search that worked and found nothing is not an error.

Tool distribution and tool_choice

Too many tools hurt selection. The guide’s example contrasts 18 tools with 4 or 5. Give each agent the tools for its role, and add narrow cross-role tools only for frequent needs, for instance a fact-verification tool for a synthesis agent while complex checks still go through the coordinator. Replace generic tools with constrained ones, such as a document loader that validates URLs instead of an open fetch.

tool_choice has three settings. auto lets the model answer in text or call a tool. any forces some tool call but lets the model choose which. A forced selection names one tool, which is how you make a particular step, such as metadata extraction, run first; later steps run in follow-up turns.

MCP in Claude Code

Project-scoped servers live in .mcp.json and are shared through version control; personal or experimental servers go in the user-level ~/.claude.json. Environment variable expansion such as a GitHub token reference keeps secrets out of the repository. Tools from all configured servers are discovered at connection time and are available together. MCP resources expose catalogues, such as issue summaries or database schemas, so the agent need not explore with repeated calls. Prefer community servers for standard integrations like Jira, and write custom servers for team-specific workflows. The Model Context Protocol’s own architecture overview describes tools, resources and prompts as the three server primitives.

Built-in tools

Grep searches file contents, such as callers of a function or error messages. Glob matches file paths by pattern, such as test files by extension. Read and Write handle whole files, and Edit makes targeted changes using unique text; if the anchor text is not unique, fall back to Read followed by Write. Build understanding incrementally: grep for entry points, read to follow imports, rather than loading everything.

Three sample questions

Question 1. A search subagent calls an external API that times out for one source. Another query succeeds but returns zero matches. How should the subagent report these two outcomes?

  • A. Report both as failures so the coordinator retries
  • B. Report both as empty results to keep the output simple
  • C. Report the timeout as a structured error with context and the empty query as a successful empty result
  • D. Report neither and leave the field blank
Show answer

Answer: C

The guide separates access failures, which need retry decisions, from valid empty results, which are successful queries with no matches. Reporting both as failures or both as empty hides information the coordinator needs.

Want more questions like this? Full CCAR-F practice tests →

Question 2. An extraction flow must always run a metadata extraction tool before any enrichment tools run. Which setting guarantees the order for the first call?

  • A. tool_choice set to a forced selection of the metadata tool
  • B. tool_choice set to auto
  • C. tool_choice set to any
  • D. A system prompt line that says to start with metadata
Show answer

Answer: A

A forced tool selection names the specific tool the model must call, so metadata extraction runs first; later steps can follow in subsequent turns. Auto may return text, and any only guarantees that some tool is called, not which one.

Want more questions like this? Full CCAR-F practice tests →

Question 3. You try to change one line in a configuration file with Edit, but the text appears in several places and the edit fails. What is the reliable fallback?

  • A. Use Grep to replace the text
  • B. Use Glob to change the file
  • C. Run the same Edit again with a longer timeout
  • D. Read the file and then Write the corrected full contents
Show answer

Answer: D

When Edit cannot find unique anchor text, the guide suggests reading the whole file and writing the modified version. Grep finds text but does not change it, Glob matches file names and repeating the failed edit will fail again.

Want more questions like this? Full CCAR-F practice tests →

Practice

Do the guide’s Exercise 1: write two similar tools, test with ambiguous requests, then improve the descriptions and measure. Continue with Claude Code configuration and the practice test.