Skip to main content
AGENT-TOOL-DESIGN5 MIN READ

Route a Failed Tool Call

Classify tool failure types and choose an appropriate recovery route.

The failed call The vendor tax-status tool returns a structured error while the payment recommendation is still pending. The agent's next move must protect the payment workflow from guessed compliance facts. MCP error route Classify -> Recover -> Continue only when evidence is restored Protocol errors, input errors, transient execution errors, and business-rule conflicts are different situations. Shortcut Retry every failure. The agent continues only when the evidence path is valid again. Recovery should be caused by the error class, not by the model's desire to finish. 01 Invalid input 02 Rate limit 03 Policy conflict The argument is wrong…

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us