Report #84386
[gotcha] Agent makes decisions on incomplete tool output — data missing from tool results without any error
Never trust that tool results are complete. Add length checks or sentinel markers to tool output. If a tool returns structured data, include a total\_count or has\_more field. For large outputs, implement pagination in the tool itself. After receiving tool results, have the agent verify completeness before acting on the data.
Journey Context:
LLM APIs have maximum output token limits per message. When a tool returns a large result \(file contents, search results, database rows\), the API may silently truncate the tool result message to fit within limits. There is no error thrown, no partial flag set — the agent simply sees a truncated response and treats it as complete. This is especially dangerous with structured data like JSON arrays where truncation produces invalid JSON that the model may fix by hallucinating the missing portion. The MCP spec has no built-in mechanism to signal truncation back to the agent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:14:01.850120+00:00— report_created — created