CCA Prep Studio
—

Task 2.2 · Domain 2: Tool Design & MCP Integration

Structured error responses

When a tool fails, the agent needs to know what kind of failure it was. A result flagged with isError and carrying an error category, a retryable flag, and a readable message lets the agent retry, fix its input, explain a policy, or escalate. A bare "operation failed" leaves it guessing.

Updated 10-20-2026 · Official guide §6, Task 2.2

Key points

  • The MCP isError flag marks a tool result as a failure.
  • Four categories: transient (timeouts, service unavailable), validation (bad input), business (policy violation), permission.
  • Uniform generic errors prevent the agent from choosing the right recovery.
  • Retryable versus non-retryable metadata prevents wasted retry attempts.
  • An access failure needs a retry decision; an empty result is a successful query with no matches.

Skills the exam expects

  • Return errorCategory, an isRetryable boolean, and a human-readable description.
  • Mark business rule violations as not retryable with a customer-friendly explanation.
  • Recover from transient failures locally inside a subagent; propagate only unresolved errors, with partial results and what was attempted.
  • Distinguish access failures from valid empty results.

Common misconceptions

  • "The model will work out what went wrong from any message." It needs structure to decide.
  • "Every error should be retried a fixed number of times." Validation and business errors never succeed on retry.
  • "An empty list and a timeout can be reported the same way." They call for different decisions.

Watch for

Generic failure text, errors silently returned as empty success, and whole workflows terminated on a single transient failure.

Practice task 2.2

57 practice items cover this task in CCA Prep Studio: flashcards, matching, scenario questions and explain-it-back exercises, each tracked toward your mastery score.

CCA Prep Studio is an independent study product. It is not made, endorsed or sponsored by Anthropic. Claude is a trademark of Anthropic, PBC, and is used here only to name the exam and the technology it covers. Content is written in our own words and cites the official exam guide; no exam questions are reproduced. © 2026 NovaLinQs AI, LLC.