Tool error handling — CCA-F Exam Prep

A payment API went down for 90 seconds. Claude retried 47 times. Cost: $200.
A fintech startup had a Claude 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, so tokens compounded with every retry.