Grokking the Model Context Protocol (MCP)
Vote

0% completed

​

Progress, Cancellation, and Pagination

A finance approver asks the assistant for every taxi expense of the quarter, and the search matches 250 expenses. What should one result contain?

Returning all 250 is the obvious answer and a poor one. Every expense in the result becomes text in the model's context, and the first few rows answer most questions. Returning the first 50 without comment is worse, because the model then believes that 50 is the whole answer. A good result contains one page, the total, and a way to ask for the next page.

That technique is pagination, and it is the first of three utilities here

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content