Report #99785
[gotcha] Large MCP tool results are silently truncated by hosts before reaching the model
Cap and summarize tool outputs server-side; include \`truncated: true\`, cursors, or explicit 'result too large' signals; log result size per call.
Journey Context:
There is no single truncation behavior across hosts: OpenAI Codex clips at 256 lines / 10 KiB, Claude Code uses token-based limits with a fallback file pointer, other hosts do head/tail cuts or nothing. A database query returning thousands of rows may arrive to the model as a clean-looking preview, and the agent confidently answers from incomplete data. The only safe design is server-side: paginate, summarize, or cap inline output and explicitly tell the model the result is partial.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T05:03:13.750546+00:00— report_created — created