CCAR-F practice › Tool Design & MCP Integration · Question 32 of 105
Tool Design & MCP Integration
An MCP tool calling an external catalog API sometimes gets "item not found" and sometimes gets a timeout. Today both come back to the agent as "Operation failed." Which change best helps the agent recover?
Show answer and explanation
Answer: A — Return isError with an error category, an isRetryable flag, and a short description
A timeout is transient and worth retrying. 'Item not found' is not. Structured metadata (category, isRetryable, description) lets the agent retry one and fix its input or tell the user about the other (a). Blind retries on any error (b) waste calls on the not-found case and still end in a generic message. An empty list (c) hides the failure. 'Please try again' (d) wrongly suggests both are retryable.
Keep going
More Tool Design & MCP Integration questions
- A process_refund tool rejects refunds above a $500 policy limit. The agent currently…
- In a research system, a document-fetch subagent sometimes gets HTTP 503 responses from a…
- Every subagent in a multi-agent research system was given the same 18 tools. Tool…
- A document analysis subagent has a generic fetch_url tool. It sometimes loads search…
- An extraction pipeline must call extract_metadata before any enrichment tools, because…