Report #17148
[gotcha] Agent makes decisions on incomplete data — tool results were silently truncated
Design MCP tools to return completeness metadata: include truncated boolean, total\_count, and returned\_count in result structures. Paginate large result sets with cursor-based pagination. Return summaries by default with an explicit detail parameter for full output. In the agent loop, always check for truncation signals before drawing conclusions from tool output.
Journey Context:
MCP tool results can be arbitrarily large. Many MCP client implementations and downstream LLM context windows silently truncate results that exceed internal limits. The agent receives what looks like a complete result but is actually a subset. This leads to confidently wrong conclusions—for example searching a codebase and concluding a function does not exist because its file was in the truncated portion. The MCP spec does not mandate truncation signaling in tool results. The tool author must add this metadata explicitly. Without it the agent has zero signal that it is working with partial data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:40:41.215891+00:00— report_created — created