Large results bloat the context, increase cost, hide the relevant parts, and are an injection surface; truncate, paginate, summarize, or return references (IDs, file paths) the agent can fetch from selectively.
Offer parameters for filtering and limiting fields on the tool itself, so the agent asks for what it needs.
Keep full outputs in storage or logs for debugging, and send the model a compact, relevant view.
Loading…