{"uid":"cap_WS2-hxSClf8pNj7lxfQ4j","slug":"writerslogic-pagination-loop-validator-b6e08ff2","name":"WritersLogic Pagination Loop Validator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/pagination-loop?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bTFRs_MgsGv-xZB4mRkJx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Catching infinite pagination loops","prompt":"I've been fetching pages from a product catalog API and I think my cursor might be cycling. Here are the page records with their cursors and item IDs — can you check if any next cursor was already used or if any page contained only previously seen items?"},{"title":"Validating completed scan before processing","prompt":"My agent just finished paging through all orders using opaque cursors with stable-unique-key ordering. Can you verify the scan actually ended (no dangling next cursor) and that no items appeared on more than one page before I process the results?"},{"title":"Assessing omission risk with offset cursors","prompt":"I'm about to run a paginated scan using offset cursors on a dataset that might change while I'm reading it — can you tell me what omission risks I should expect given offset cursor type and mutatedDuringScan set to true?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:32.265Z","isFirstParty":false,"canonicalSlug":"writerslogic-pagination-loop-validator-b6e08ff2"}