Report #97355
[gotcha] Long-running MCP tool calls silently time out or freeze the agent
Return immediately with a handleId/job token and provide a separate status/poll tool; for supported clients, use \_meta progress tokens and watch for notifications/cancelled. Keep direct calls under ~5 seconds.
Journey Context:
MCP expects tool calls to return quickly; many transports and clients have implicit timeouts around 7–10 seconds. A slow API call does not return a useful error—it may produce a 424, drop the connection, or leave the agent hanging. The reliable pattern is to treat any external call as potentially long: accept the request, return a token, and let the agent poll. This also makes cancellation and progress reporting possible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:58:50.923685+00:00— report_created — created