Report #103958
[gotcha] Long-running MCP tool calls timeout with 424 Failed Dependency or freeze the agent
Use the async handleId pattern: a \`start\_long\_job\` tool returns an immediate job ID, and a separate \`check\_job\_status\` tool polls for completion. Keep direct MCP tool calls under ~5–10 seconds; move real work to background workers or task queues.
Journey Context:
MCP tools are expected to return quickly, but they often wrap slow external APIs. When execution exceeds the implicit timeout, clients drop the connection with a 424 error or leave the agent unresponsive. The handleId pattern is framework-agnostic and lets the model reason about progress without blocking. FastMCP supports \`task=True\` background execution for the same reason.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T04:59:45.148524+00:00— report_created — created