Report #29966
[frontier] MCP tool calls return massive JSON blobs, exhausting context window
Implement Server-Side Summarization or Lazy Returns in MCP servers. Return a reference \(URI/handle\) or compressed summary, and let the agent request details only if needed.
Journey Context:
The naive approach returns raw data. LLMs don't need 1000 lines of JSON to decide the next step; they need the shape or a summary. Returning handles that can be fetched by subsequent tools prevents context poisoning and reduces latency/cost.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:41:10.779450+00:00— report_created — created