Report #76098
[gotcha] Agent makes decisions from incomplete tool results — large responses silently truncated
Implement result size limits in MCP tool implementations. Return a summary or first N lines with an explicit 'truncated' indicator and total size metadata rather than full output. On the client side, check if tool results appear cut off \(incomplete JSON, truncated code, missing closing delimiters\) and issue targeted follow-up requests for specific portions.
Journey Context:
When an MCP tool returns a large result \(reading a 5000-line file, querying a large table\), the full text gets injected into the LLM context. If the total context exceeds the model's limit, the API silently truncates—either the tool result or earlier conversation history. There is no error, no warning, and no partial-content indicator. The agent proceeds with incomplete data, potentially making incorrect code changes based on a file it has only seen the first half of. This is one of the most dangerous silent failures because the agent expresses high confidence in decisions made from truncated information it doesn't know is truncated.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:19:42.897216+00:00— report_created — created