AJERIS
TourBlogDocsLog inText us
Log inText us
← All terms
Category
Agent core
Related terms
  • Tool use
  • Agent loop
  • Approval gating
  • Audit trail (agent actions)
  • Hallucination
Glossary · Agent core

Tool failure recovery

Tool failure recovery is the agent's pattern for handling tool calls that fail (the API returns 500, the auth token expired, the network timed out). A well-designed agent retries, falls back, or escalates to the user; a brittle one reports success when nothing happened.

Why it matters

Tool calls fail. APIs go down, tokens expire, network blips happen, downstream services rate-limit. A production AI agent has to assume tool calls fail at some non-trivial rate and design accordingly. Without explicit recovery patterns, the failure mode is silent: the agent calls the tool, gets an error, and either (a) reports false success, (b) silently drops the action, or (c) panics in a way the user cannot recover from.

Good recovery looks like:

  • Retry with backoff for transient failures (timeouts, 5xx errors). One or two retries usually clears the issue.
  • Refresh and retry for auth errors. If the token expired, refresh it and retry the call once.
  • Fall back if the failure is structural. If a write tool fails, attempt the same action through a different tool or surface the failure clearly.
  • Escalate to user if recovery is not possible. Tell the user the action did not happen; ask if they want to retry or do something else.

The anti-pattern: the agent narrates success ("I sent the invoice") while the underlying tool returned an error. This is one form of hallucination. The defense is mechanical: the agent's report should be derived from the tool's actual response, not from the agent's narration of intent.

How Ajeris handles this

Ajeris's agent loop treats tool failures as first-class events. Transient failures retry with backoff. Auth failures refresh tokens and retry. Structural failures (the tool says "no, this is not allowed" or "the resource does not exist") surface to the user with a clear explanation. Every tool call writes to the audit trail with success or failure status.

When an action queued for approval fails on execution, the user gets an SMS within seconds: "I tried to send the invoice but Stripe returned an error; want me to try again or do you want to do this from your phone?"

See it work.

Text +1 (470) 821 4265. Free to try.

Text on WhatsApp
Connects to

Every tool you already use. Your agent does the rest.

WhatsApp
Gmail
Calendar
Slack
Notion
GitHub
Instagram
Spotify
Uber
DoorDash
Apple Music
Telegram
WhatsApp
Gmail
Calendar
Slack
Notion
GitHub
Instagram
Spotify
Uber
DoorDash
Apple Music
Telegram
Shopify
QuickBooks
Xero
Square
HubSpot
Salesforce
Stripe
Lyft
Alexa
Google LSA
Hue
Claude
Shopify
QuickBooks
Xero
Square
HubSpot
Salesforce
Stripe
Lyft
Alexa
Google LSA
Hue
Claude

Message to start

+1 470 821 4265

Message the number above on WhatsApp or by SMS. Your assistant replies within seconds and sets itself up in the conversation. Or sign up by web form to be added to our list.

Welcome message. “Hi. I’m Ajeris. I’ll be your personal agent. What should I call you? Reply STOP to unsubscribe, HELP for help.”

STOP to unsubscribe. HELP for support.

Message and data rates may apply. Carriers are not liable for delayed or undelivered messages. Message frequency varies based on your interaction with the agent.

Questions: hi@ajeris.com

Your assistant is already in your phone. You just need to text it.

The personal assistant you can actually get today. No app, no waitlist.

WhatsApphi@ajeris.com
Personal
  • Channels
  • Morning brief
  • Meetings
  • Research and build
  • Laptop on a leash
  • Everyday
  • Memory
Platform
  • Connectors
  • Platform
Developers
  • Docs
  • Quickstart
  • Platform overview
  • Memory model
  • Skills
  • Scheduled tasks
  • MCP server
  • Claude Code
  • Alexa+
Resources
  • Blog
  • Compare
  • Glossary
  • Live webinar
  • Creator Program
Trust
  • Privacy
  • Security
  • Terms
  • Data retention
  • Access controls
  • Vulnerability management
  • Opt in
  • Disconnect

Your personal agent, by text.

Try it free·Ajeris for business·docs.ajeris.com·© 2026 Ajeris