Report #45151
[gotcha] Tool returns partial data but agent thinks it got everything
Always include a completeness marker in tool results \(e.g., a \`truncated: true\` field, or \`returnedCount/totalCount\`\). Never trust that a large tool result was delivered in full. Cap result sizes server-side and paginate aggressively.
Journey Context:
MCP tool results can be arbitrarily large, but the LLM context window is finite. When a tool returns a massive result \(full file listing, database dump\), the result may be silently truncated by the client or model API before the agent sees it. The agent then reasons over incomplete data with zero signal that data is missing. Unlike HTTP with Content-Length, MCP tool results have no built-in truncation indicator. The \`isError\` field only covers explicit errors, not data loss. This is the single most common cause of agents making confidently wrong decisions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:15:24.829510+00:00— report_created — created