Report #93000
[gotcha] Agent gets stuck in an infinite loop calling the same tool or bouncing between tools
Enforce a hard limit on the number of consecutive tool calls or total tokens per task. Implement a 'circuit breaker' if the same tool is called with the same arguments repeatedly.
Journey Context:
LLMs can get stuck in loops when a tool returns an error the LLM doesn't understand, or when two tools undo each other's actions. MCP doesn't enforce call limits; the client must implement a circuit breaker to prevent resource exhaustion \(API costs, compute\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:41:22.696502+00:00— report_created — created