Report #97356
[gotcha] Agents get stuck calling the same MCP tool repeatedly with no progress
Give tools clear terminal states \(SUCCESS/FAILED/NO\_MORE\_RESULTS\), add a client-side debounce/circuit breaker for N identical calls, and cap iterations, time, and spend.
Journey Context:
Ambiguous tool responses like 'more results may be available' invite the model to retry forever. Without explicit stop signals and hard limits, agents burn tokens and sometimes wedge the session. The root cause is usually the tool description and return contract, not the model: descriptions must say when to stop and what to do when data is insufficient. A small hook that blocks duplicate calls pays for itself immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:58:52.372511+00:00— report_created — created