This repository was archived by the owner on Jun 15, 2026. It is now read-only.
Pagination in tools? #144
justinmchase
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The sample tool call is very minimal and the tool api itself is basically completely open ended with no structure.
GetWeather Example
Mcp Pagination?
The MCP protocol supports response formats that include pagination:
https://modelcontextprotocol.io/specification/2025-03-26/server/utilities/pagination
Is this relevant to tools? Is it handled lower down automatically?
Example
For example I've created a tool which returns an
IAsyncEnumerable<T>result...So the problem is that the set of Examples in this case is unbounded, there could be way more than the agent can reasonably handle (I think, right?).
Open Questions
Page<T>objects? Should I just stream it and assume that lower down it will handle it?Beta Was this translation helpful? Give feedback.
All reactions