Our MCP was quietly answering from half the data.
Claude Code caps an MCP tool result at 25,000 tokens by default. Anything bigger gets saved to a file that Claude reads piece by piece.
For us, that broke real questions. “What are my top-performing hooks across Meta, Google and TikTok?” needs thousands of ad rows. Reading them in pieces means:
→ every piece fills the context, and gets re-sent on every turn
→ Claude often stops after a few pieces and answers from part of the data
→ adding up thousands of rows in its head is where mistakes creep in
→ other MCP clients may not save to a file at all, they cut it off or fail
So at Reckon we gave our MCP a new tool, execute_code:
→ Claude writes a short script
→ it runs on our server, right next to the data
→ code reads every row and does the maths exactly
→ only the answer comes back
The data never has to fit in Claude’s context. Only the answer does.
Same idea Datadog’s MCP uses with its own execute_code tool (@datadoghq).
The hard part was running code a model wrote, safely:
→ on our server, not the client’s (Claude Code’s own sandbox can’t call the connector’s tools)
→ in a sandbox with no network access
→ no privileges, and never as root
Builders shipping MCPs: how are you handling results too big for the context?