API Pagination Logic Verifier

API Pagination Logic Verifier MCP Connector for Claude

A+

Audit API endpoints for correct pagination patterns to prevent memory exhaustion.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

The API Pagination Logic Verifier is an AST-based engine designed to identify 'unbounded' API endpoints. By parsing source code, it detects if implementations correctly use offset/limit or cursor-based pagination and enforces maximum limits to prevent service crashes caused by memory exhaustion. Use analyze_offset_pagination to check parameter structures, verify_limit_enforcement to audit guardrails, and inspect_pagination_metadata to ensure response objects include necessary navigation pointers.

paginationast-parsingapi-safetyperformanceaudit

3 tools expose this connector's capabilities to your AI agent.

analyze_offset_pagination

Checks if an endpoint implementation correctly accepts and structures parameters for offset/limit pagination

inspect_pagination_metadata

Verifies that the API response structure includes the necessary information for clients to navigate pages

verify_limit_enforcement

Audits whether the code implements a guardrail to prevent excessively large requests

See how to talk to your AI agent using API Pagination Logic Verifier.

Check if this handler uses pagination: `const { limit, offset } = req.query;`

The tool identified both `limit` and `offset` parameters in the destructuring pattern.

Does this code enforce a maximum limit of 50? `if (limit > 50) limit = 50;`

Yes, the logic correctly compares the incoming limit against the threshold of 50.

Verify if the response contains metadata: `res.json({ totalCount: 100, nextCursor: 'abc' });`

The response structure is valid and includes both `totalCount` and a navigation pointer.

The engine uses Abstract Syntax Tree (AST) parsing to analyze code structure without execution, looking for specific patterns in variable declarations and function parameters.

Related Connectors