Report #12833
[gotcha] A malicious tool description or prompt injection causes the agent to enter an infinite loop of calling the same tool
Enforce a hard limit on the number of sequential tool calls per session or per task turn in the host application, and implement circuit breakers.
Journey Context:
LLMs can get stuck in loops \(e.g., Tool A returns an error, LLM retries Tool A indefinitely\). Without a hard circuit breaker at the orchestration layer, a malicious prompt or a buggy tool can cause massive unbounded consumption of resources and API credits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:10:00.991644+00:00— report_created — created