Skip to main content
Glama

pagination-loop

Detect repeated cursors, duplicate-only pages and no progress in a pagination scan — Takes the pages an agent has fetched so far (cursor used, next cursor returned, item ids) and finds the failures that make a scan loop or lie: a next cursor already used, a page whose items were all seen before, a page that returned nothing new yet offers another cursor, a scan that has not ended. Optionally takes declared ordering and cursor assumptions and lists the omission risks they imply (of

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pages": "<pages>"
    },
    "name": "pagination-loop"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYes
declaredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full burden and mostly meets it: it names the concrete failure signatures it looks for (a next cursor already used, an all-duplicate page, a page with nothing new yet offering another cursor, a scan that has not ended) and says it 'lists the omission risks' declared assumptions imply. What is missing is any statement of whether the tool is purely a read-only computation over supplied data and how the findings are structured in the response — the truncated ending cuts that discussion short.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead clause is well front-loaded, but the second sentence is a long run-on that chains four failure modes with commas and then terminates mid-parenthetical ('(of'), which is a real defect an agent has to work around. Density is high enough that the truncation loses information rather than just style.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, nested-object tool with no annotations and no output schema, the description covers the essential contract: what it analyzes, the failure classes it reports, and the optional assumption inputs. Missing pieces are the 'mutatedDuringScan' parameter and a concrete statement of the returned findings, but the core of what an agent needs to decide and call is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Reported schema description coverage is 0% at the top level, so the description has to compensate. It does explain the 'pages' payload in human terms (cursor used, next cursor returned, item ids) and mentions the declared ordering and cursor assumptions, but it never mentions 'mutatedDuringScan' and the sentence explaining what declared assumptions are used for is truncated mid-word. Partial compensation, not full.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and enumerated targets: 'Detect repeated cursors, duplicate-only pages and no progress in a pagination scan,' and clarifies immediately that it consumes already-fetched pages rather than fetching them. The only blur is the truncated final clause ('(of'), which leaves the declared-assumption half of its purpose unfinished, so an agent knows the primary purpose but not the full scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Takes the pages an agent has fetched so far' implies the moment of use (after paging, before continuing or trusting a scan) but never states it explicitly. There is no when-not guidance, no statement about whether it should be re-run after each page versus once at the end, and no named alternative — usage must be inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources