Ai agents
A cheaper way to show a total count in MCP list tools
Agents need a total to decide whether to page or narrow a query, but exact counts are slow. Count up to one past the paging limit instead: about 430 times faster on 550,000 rows.
3 min read