Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

Show all 10 Structured Error Responses for Tools practice questions and answers
  1. How does an MCP tool signal failure to the agent?
    With the isError flag on the tool result.
  2. Which error categories should tools distinguish?
    Transient (timeouts), validation (bad input), business (policy violation) and permission errors.
  3. Why is a generic 'Operation failed' bad?
    The agent can't decide whether to retry, fix input, or escalate.
  4. What metadata should an error include?
    errorCategory, isRetryable and a human-readable description.
  5. How should business-rule violations be returned?
    As non-retryable errors with a customer-friendly explanation.
  6. How should transient errors be handled?
    Retry locally in the subagent where possible; propagate only if unresolved.
  7. 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.
  8. Why must they be distinguished?
    Treating a failure as 'no results' leads to wrong conclusions.
  9. What should a subagent return when it can't recover?
    The error plus partial results and what it attempted.
  10. Why include a retryable flag?
    It prevents pointless retries of permanent failures.