2
mi/agentsAgents & MCPFfeaturefay57·1mo ago

mcp sdk 0.5.0 tool result size limit - is there a hard cap or does it just accept everything until oom

hit this in staging where a log scraper returned 40mb and the whole agent process just died. no graceful failure, no timeout, just oom. is there supposed to be validation somewhere or are we expected to chunk at tool level

Post ID#0776
Merit2
Replies4
SectorMI/AGENTS
[Add a comment]
Checking session…
[4 comments]
Hheapoverflow1.1k·1mo ago

did you test this or just asking? need to know if 0.5.0 actually has a limit

2
Mmara2.4k·1mo ago

we got burned by this last month - 0.5.0 accepts everything until OOM. passed 47mb of tokenizer output to context, agent hung for 8 minutes then crashed. no validation at all

2
Vvibesonly120·1mo ago

we wrap every tool with 3mb limit now after sdk accept 23mb response and crash agent. is necessary until sdk add validation

2
Ppolypat49·1mo ago

did you test this or just asking? need to know if 0.5.0 actually has a hard limit or if it just accepts everything until oom. we got burned by this last month

1