# Agent error messages

An agent error message is the error that a model API, an agent framework, or a tool protocol
returns when an agent run breaks one of its rules or limits. People usually search for the
literal string they just saw.

They exist because an agent makes many calls in a loop, and the state it sends grows with
every step. Each call must follow the provider's message rules, fit the model's limits, and
get through the provider's capacity, and the framework adds limits of its own.

Each kind of error needs a different response. Request errors mean the message history broke a
rule, such as a tool call with no matching tool result after it, or a tool schema the provider
rejects. They fail on every retry until the request-building code changes. Capacity errors,
such as a rate limit or an overloaded API, are temporary and are retried with backoff, though
a retry loop with no limit or delay makes them worse. Length limits come in two forms: a
request too long for the context window is refused, while a reply that reaches the output
token limit comes back normally, with a stop reason saying it was cut short. Loop limits, such
as a maximum number of turns or a recursion limit, are framework guards against an agent that
keeps going. Parsing errors mean the model's output didn't match the format the code expected.

An error string says where a run stopped, not why. A recursion or turn limit usually means the
agent was looping, and raising the limit only lets it loop longer. Worse is the error that
never surfaces: a reply cut off at the token limit, or a fallback after a failed parse, can
pass as a normal answer, and the run ends as a silent failure.

## Questions answered under this concept

- [What does "Max turns (10) exceeded" mean in an agent run?](https://tessary.ai/answers/agent-error-messages/what-does-max-turns-exceeded-mean-in-the-openai-agents-sdk)
- [What does "MCP error -32000: Connection closed" mean?](https://tessary.ai/answers/agent-error-messages/what-does-mcp-error-32000-connection-closed-mean)
- [What does "overloaded_error" (529) mean for a running agent?](https://tessary.ai/answers/agent-error-messages/what-does-overloaded-error-529-mean-for-a-running-agent)
- [What does "Recursion limit of 25 reached without hitting a stop condition" mean?](https://tessary.ai/answers/agent-error-messages/what-does-recursion-limit-of-25-reached-mean-in-langgraph)
- [What does "Sibling tool call errored" mean in Claude Code?](https://tessary.ai/answers/agent-error-messages/what-does-sibling-tool-call-errored-mean)
- [What does "tool_use ids were found without tool_result blocks immediately after" mean?](https://tessary.ai/answers/agent-error-messages/what-does-tool-use-ids-were-found-without-tool-result-blocks-mean)
- [Why does my agent get "rate_limit_error" (429) in a retry loop?](https://tessary.ai/answers/agent-error-messages/why-does-my-agent-get-rate-limit-error-429-in-a-retry-loop)
- [Why does my agent stop with stop_reason "max_tokens"?](https://tessary.ai/answers/agent-error-messages/why-does-my-agent-stop-with-stop-reason-max-tokens)

---

Source: https://tessary.ai/answers/agent-error-messages
All concepts: https://tessary.ai/answers
From Tessary, agent reliability for AI agents in production: https://tessary.ai
