Tool error handling — CCA-F Exam Prep
L2.07|Tool error handling
1/12
A payment API went down for 90 seconds. Claude retried 47 times. Cost: $200.
A fintech startup had a Claude-powered agent that processed refunds. Tuesday at 3am, the payment gateway returned a 500 error. The agent's tool call failed. So Claude did what it was designed to do: try to accomplish the task.
It called the tool again. 500. Again. 500. 47 times in 2 minutes. Each call included the full conversation context -- system prompt, user message, all 46 previous failures. Tokens compounding with every retry.
The payment API was down for 90 seconds. The cleanup took 3 weeks.
