Open
Description
Often models seem to fall paginated tools with the same arguments repeatedly. If you explicitly tell the to stop and paginate through they seek to get it.
Suggestions:
- maybe make pagination arguments required
- edit the pagination field descriptions
- possibly edit the descriptions of paginated tools too, to ensure the model understands it can/should page through.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
williammartin commentedon May 26, 2025
Can you provide an example prompt that currently causes issues?
asiermartinez commentedon Jun 2, 2025
I encountered the same issue using the prompt: "Get all open pull requests for github/github-mcp-server and calculate the total number." The process gets stuck in an infinite loop, repeatedly making the same API calls.
SamMorrowDrums commentedon Jun 10, 2025
I used this prompt, and it kept getting page 1. Basically any pagination attempt often fails.
neilconway commentedon Jul 5, 2025
I tried a similar prompt and got similarly suboptimal behavior. Telling the model about pagination in the prompt seemed to help, e.g.,:
There is some discussion about adding support for paginated tool results in the MCP spec: modelcontextprotocol/modelcontextprotocol#799