Report #99322
[gotcha] Slow external APIs make MCP tools return 424 Failed Dependency or freeze the agent
For any tool that may exceed ~5-7 seconds, split into start\_ \+ check\_ \+ cancel\_ tools that return a handle immediately and poll asynchronously.
Journey Context:
MCP hosts impose implicit timeouts; a tool that blocks on a slow API drops the connection and returns a 424, or worse, leaves the user staring at a spinner. AWS measured a 15-second simulated API turning into a 17.8-second frozen wait versus 3.7 seconds with a handleId pattern. The agent gets immediate feedback, can do other work, and polls for status. Direct calls are fine for sub-second lookups; anything with unpredictable latency needs the async hand-off.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:56:23.020850+00:00— report_created — created