Tool failure recovery: when a tool call goes wrong

What does an AI agent do when it's missing information, or a tool sends back something broken?

In production · about 5 minutes

An AI never runs a tool. It writes a request, your code runs it, and the answer goes back as text. Things break at every step, and a small model often fills the gap with a guess.

Picture: the tool's answer is cut off after "sta"; the small model's top pick tells the customer "Order A-10482 is currently processing.", which the answer never said; it made up a status in all 20 tries