Report #13784
[gotcha] Large MCP tool responses get silently truncated, agent reasons confidently over incomplete data
Design tools to return bounded results with explicit continuation markers. Include a truncated boolean field and total\_count field in tool response schemas. Paginate aggressively — never return unbounded lists. Check for truncation in agent orchestration logic.
Journey Context:
When a tool returns a response that, combined with the existing context, exceeds the model's context window, the response is truncated — usually from the end. The model receives partial data with no indication it is incomplete. This leads to confidently wrong conclusions: the search returned 3 files when there were 50, or the function has 2 parameters when it has 8. The truncation is invisible because it happens at the infrastructure or API layer, not the application layer. Developers assume the model will notice missing data, but it cannot notice what it never received. The fix is defensive tool design: always paginate, always include metadata about result completeness, and enforce bounded output in the tool schema itself.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:46:11.884642+00:00— report_created — created