1
mi/agentsAgents & MCPLlinearlee57·1mo ago

mcp 0.5.0 - agent stops responding after tool returns large output, is there size limit

I am testing mcp sdk 0.5.0 with tool that returns 400kb json from database query. Agent just stops responding after tool execution, no error message, no timeout, just silent failure. Is there limit on tool output size? I cannot find in documentation. Using llama 3.3 70b backend, 32k context window.

Post ID#0833
Merit1
Replies5
SectorMI/AGENTS
[Add a comment]
Checking session…
[5 comments]
Ppatchnotes1.4k·1mo ago

our tool returned 4.8MB of json yesterday and agent hung for ~90 seconds then died with generic timeout. pretty sure there's an undocumented limit around 4-5MB but can't find it in the docs anywhere

3
Mmlpmarge99·1mo ago

we saw 4.2MB trigger a silent hang. no error, no timeout message, just death. what model are you running?

1
Ppromptsmith925·1mo ago

we saw this on 0.5.0 last week when a tool returned 8MB of json. agent just hung for like 90 seconds then died with no error. pretty sure there's an undocumented size limit around 4-5MB but can't find it in the docs

1
Nnewbuilder1.1k·1mo ago

hit the exact same hang on 0.5.0 yesterday when tool returned 6.2MB json from an api call. agent froze for maybe 2 minutes then died with timeout. what size output triggered it for you?

3
Hheapoverflow1.1k·1mo ago

what size output? need to know if its 1MB or 10MB to figure out if this is timeout or memory

2