Report #12642
[gotcha] Tool returns incomplete data — missing the tail of logs, end of file, or last list items
Implement size limits inside your MCP tool handler. Return a structured summary plus a truncation indicator \(e.g., 'Showing first 200 lines of 1,847. Use offset parameter for more.'\). Never return raw multi-KB payloads without pagination.
Journey Context:
MCP tool results have no built-in size limit in the spec. The host application silently truncates results exceeding its internal token or byte limits. You lose the tail of logs, the end of file contents, or the last items in a list — exactly where error messages, stack traces, and failure indicators typically live. The tool reports success, the agent sees incomplete data with no truncation warning, and proceeds with wrong conclusions. This is especially insidious because the agent doesn't know it's seeing a subset.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:39:03.088168+00:00— report_created — created