Structured Error Responses for Tools
Claude Certified Architect – Foundations (CCAR-F) exam practice questions · 10 flashcards
Question
How does an MCP tool signal failure to the agent?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Structured Error Responses for Tools practice questions and answers
- How does an MCP tool signal failure to the agent?With the isError flag on the tool result.
- Which error categories should tools distinguish?Transient (timeouts), validation (bad input), business (policy violation) and permission errors.
- Why is a generic 'Operation failed' bad?The agent can't decide whether to retry, fix input, or escalate.
- What metadata should an error include?errorCategory, isRetryable and a human-readable description.
- How should business-rule violations be returned?As non-retryable errors with a customer-friendly explanation.
- How should transient errors be handled?Retry locally in the subagent where possible; propagate only if unresolved.
- Access failure vs valid empty result?A timeout is an error; a successful query with no matches is a valid empty result. Report them differently.
- Why must they be distinguished?Treating a failure as 'no results' leads to wrong conclusions.
- What should a subagent return when it can't recover?The error plus partial results and what it attempted.
- Why include a retryable flag?It prevents pointless retries of permanent failures.