Report #6424
[gotcha] Tool returns incomplete or truncated data without any error or warning
Implement size-aware result handling: paginate large results, include a truncation indicator in tool responses, and set explicit result size limits. When returning lists, include total count and whether more results exist. Test with result sizes that exceed the remaining context window.
Journey Context:
When a tool returns a result larger than the remaining context window, the host application silently truncates it to fit. The model receives partial data with no indication it's incomplete, leading to confident but wrong conclusions — missing files in a directory listing, incomplete code search results, or truncated database rows. This is especially dangerous for operations with variable-length results \(directory listings, search queries\) where the model has no way to know data is missing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:07:21.123430+00:00— report_created — created