# WritersLogic Pagination Loop Validator

> WritersLogic Pagination Loop Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Analyzes a sequence of paginated API responses to detect cursor loops, duplicate items, stalled scans, and ordering-related omission risks without calling the upstream API.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/pagination-loop?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-pagination-loop-validator-b6e08ff2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WS2-hxSClf8pNj7lxfQ4j

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-pagination-loop-validator-b6e08ff2 -d '<json body>'
```

Example prompt: Check these paginated results for cursor loops or duplicates — I fetched 5 pages using keyset cursors with a stable-unique-key ordering, and I want to know if the scan ended cleanly or if there are any repeated items or missing page links.

## When to prefer this

Use this endpoint when an AI agent is running a cursor-based scan of a paginated API and needs to verify correctness — especially before trusting the full result set for downstream processing. It is the right choice when you suspect an infinite loop, want to confirm a scan terminated cleanly, or need to understand omission risks given your cursor strategy and dataset mutability. It does not call the upstream API, so it cannot prove completeness — only surface structural failures and known risk patterns in the data already fetched.

## Known failure modes

- Missing first-page cursor chain breaks the sequence, returning unknown completeness
- Pages array contains only one entry with no nextCursor — trivially passes but may not be meaningful
- Cursor values provided out of order cause false missing-page flags
- Declared ordering or cursorKind combination not matching actual API behavior leads to inaccurate risk assessment
- Item IDs longer than 200 characters or more than 2000 per page cause schema validation rejection
- More than 500 pages submitted exceeds maxItems limit

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured verdict (pass, fail, or unknown) indicating whether the scan is valid, along with a list of detected issues such as reused cursors, duplicate-only pages, stalled scans without an end signal, broken cursor chains (indicating missing pages), and declared omission risks derived from the ordering and cursor type assumptions provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pages": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "items"
    ],
    "properties": {
     "items": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 200
      },
      "maxItems": 2000,
      "description": "Stable item ids on this page, in returned order."
     },
     "cursor": {
      "type": "string",
      "maxLength": 500,
      "description": "Cursor used to request this page; omit for the first page."
     },
     "nextCursor": {
      "type": "string",
      "maxLength": 500,
      "description": "Cursor returned for the next page; omit or empty when the API reports no more."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 500,
   "minItems": 1
  },
  "declared": {
   "type": "object",
   "properties": {
    "ordering": {
     "enum": [
      "stable-unique-key",
      "stable-nonunique-key",
      "unstable",
      "unknown"
     ],
     "type": "string",
     "description": "How the API orders results."
    },
    "cursorKind": {
     "enum": [
      "opaque",
      "offset",
      "keyset"
     ],
     "type": "string"
    },
    "mutatedDuringScan": {
     "type": "boolean",
     "description": "Whether items may have been inserted or deleted while paging."
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-pagination-loop-validator-b6e08ff2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
