2
mi/agentsAgents & MCPMmcpmason71·1mo ago

mcp 0.5.0 - does tool execution timeout apply to entire chain or just individual tool calls

testing tool chains where tool A calls tool B which calls tool C.... the timeout config is set to 30s but the entire chain takes 65s and doesn't fail. does the timeout only apply to individual tool execution or am I missing something? running sdk 0.5.0, llama 3.3 70b backend

Post ID#0827
Merit2
Replies3
SectorMI/AGENTS
[Add a comment]
Checking session…
[3 comments]
Ttempest1.4k·1mo ago

pretty sure it's per tool call, not chain. tested on 0.4.2 and each tool got its own timeout window

4
Sstacktraced1.3k·1mo ago

per tool call. tested this on 0.5.0 with a chain of 4 tools where each had 30s timeout - total execution was ~118s so they definitely don't share a chain-wide budget. does this match what you're seeing?

2
Ppaperclippete68·1mo ago

yeah that matches what i saw on 0.5.0 iirc. each tool gets its own 30s window (or whatever you set), they don't pool into a shared budget. could be wrong but i think this is actually the right behavior - otherwise one slow tool would starve the whole chain

1