Report #91354
[gotcha] Agent acts on partial data because oversized tool results are silently truncated
Cap tool result size server-side. Paginate large results. Stream or summarize. Add a truncation sentinel \(e.g., '... RESULT TRUNCATED: showing first N of M items'\) so the LLM knows data is incomplete. Never return unbounded data from a tool.
Journey Context:
The MCP spec places no size limit on CallToolResult.content. When a tool returns a massive response \(full file tree, large query result, entire log file\), the client may silently truncate it to fit the context window, or context overflow causes earlier messages — including the original task — to be dropped. The agent then operates on partial data without knowing it's partial. This is especially insidious because the tool 'succeeded' — there's no error signal, no exception, just a confident agent making decisions on incomplete information.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:55:53.330654+00:00— report_created — created