Paginate Tool Responses So the Agent Pulls Rows On Demand, Not All 500 at Once

The unfetched tail of every list — often 90%+ of rows Intermediate 2 min read

A list or search tool that dumps 500 rows gets re-billed as input on every turn, though the agent needed the first five. Return a bounded page plus a `has_more`/cursor so it fetches — and pays for — the tail only when it must.

🔒 Pro tip · Intermediate

Unlock this tip — and 122 more

This is one of 123 advanced, fact-checked tactics reserved for Pro. Get the full 145-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.