Report #6433
[gotcha] Agent freezes or times out when one MCP tool takes too long to respond
Implement per-tool timeouts with reasonable defaults \(e.g., 30s for reads, 60s for writes\). Execute tool calls asynchronously so one slow tool does not block the entire agent loop. When a timeout occurs, return a structured error to the model so it can reason about the failure and try an alternative approach rather than hanging indefinitely.
Journey Context:
MCP tool calls are request-response in the protocol — the client sends a request and waits. If a tool hangs \(a database query that never returns, an external API that's down, a filesystem operation on a network mount\), the entire agent loop stalls with no feedback. Without explicit timeout handling, the agent appears frozen to the user. The model never receives information about the failure, so it cannot adapt its strategy or try a different tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:08:21.210410+00:00— report_created — created