Skill 2.3.3

Design tool error-handling and fallback mechanisms

Key Concepts

Transient errors (timeouts, HTTP 429 and 503) are retried with exponential backoff and jitter, honouring Retry-After. Circuit breakers stop calling a failing dependency for a period, and idempotency keys make retries of write operations safe. Permanent errors (invalid arguments, not found, forbidden) are not retried; they are returned to the model as structured, actionable messages so that it can correct the arguments or choose another path.

Fallbacks include an alternative tool or region, a cached or last-known-good result marked as such, a degraded answer that states what is missing, and escalation to a person. Retry counts and fallbacks are bounded so that a failing tool cannot trap the agent in a loop.