Report #98376
[gotcha] Slow MCP tools freeze the agent or return 424 Failed Dependency after the implicit timeout
For operations that can take more than ~5–7 seconds, return a job handle immediately and provide a check\_status polling tool; reserve synchronous calls for fast lookups.
Journey Context:
MCP has implicit timeout expectations; when a tool blocks on a slow external API, the connection drops and the agent receives a 424 error or hangs with no feedback. The async handleId pattern returns a job ID in under a second and runs the work in the background. Any MCP-compatible client can then poll until completion. FastMCP also lets you set a per-tool timeout so the server fails fast instead of silently blocking the event loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:52:16.556365+00:00— report_created — created