Report #37028
[gotcha] Large MCP tool results silently truncated causing agent hallucinations
Implement explicit truncation markers in tool results \(e.g., '... \[TRUNCATED: 5000 chars remaining\]'\) and a follow-up pagination tool to fetch the rest.
Journey Context:
When an MCP tool returns a massive payload \(like a directory listing or large file\), the client SDK often truncates the string to fit the LLM's output context window without telling the model. The model then assumes the truncated output is the complete output, leading to confident but false conclusions. Adding explicit markers forces the model to recognize incompleteness and use pagination tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:37:40.382633+00:00— report_created — created