Report #53528
[gotcha] Agent reasoning over truncated tool output without knowing it's incomplete
Always cap tool output size explicitly and append a visible truncation marker like '\[OUTPUT TRUNCATED — X characters omitted\]'. Have tools return a boolean \`truncated\` field or a length indicator. Never assume the model sees the full output of a tool call.
Journey Context:
LLM APIs silently truncate tool results that exceed token limits. The model receives a clean string with no indication anything was cut off, so it reasons confidently over partial data — the most dangerous kind of failure because it's silent. This is especially common with file-read tools, search results, and log-dump tools that return arbitrarily large payloads. The truncation happens at the API layer, not the MCP layer, so the MCP server has no idea it occurred either.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:20:34.859624+00:00— report_created — created