Report #87520
[gotcha] A single MCP tool result can blow up the context window
Paginate, filter, and truncate results; default to small limits; return only fields the model needs; use resource links for large blobs; keep tool responses under ~25K tokens.
Journey Context:
Reading a 10MB log or a large database table and returning it as a text block dumps thousands of tokens into the conversation. Anthropic recommends treating context as the primary resource: use search\_logs not read\_logs, offer a response\_format enum, and return structured summaries. The tool result format is not a file-dump channel.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:29:33.741282+00:00— report_created — created