Paging
A list tool returns one page and a token for the next. Calling again is your agent's step — or your loop's.
Amazon answers long lists one page at a time, and so does every SellerSheet tool that wraps such a list. A result never tells your agent to "call again" — the tool's description says how it pages, and the agent decides whether it needs the next page.
How it works
- Call the tool without a token — you get the first page and, when there is more, a token in
data(Amazon's own name for it, such asnextToken). - Call the same tool with the same arguments plus that token — you get the next page.
- No token in the result means you have the last page.
The argument that takes the token is named in each tool's reference — usually pagination_token or next_token, sometimes the vendor's own spelling. Most list tools also take a page size, such as page_size.
In an AI client (MCP)
{
"name": "orders_searchOrders",
"arguments": {
"store": "myStore-US",
"created_after": "2026-10-01T00:00:00Z",
"pagination_token": "<data.nextToken from the previous call>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/orders_searchOrders \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US","created_after":"2026-10-01T00:00:00Z","pagination_token":"<data.nextToken from the previous call>"}'Early access — the Tool API is open on request, contact us.
Good habits
- Pass
null, not an empty string, for "no token". Every optional argument accepts an explicitnull, so your agent can start withpagination_token: null. - Keep the other arguments the same between pages; a token belongs to its query.
- Ask the warehouse for history. "Every order last quarter" is one
query_report_datacall over the synced tables, withlimitandoffset, not hundreds of pages from Amazon — and it spends none of Amazon's rate limits. See Synced reports. - Write as you go. For a whole catalog into a sheet, your agent appends each page to the sheet before fetching the next, so a long run never holds everything at once.