{"uid":"cap_U-rsN07dkV-s0Kiml7udb","slug":"batch-chunk-plan-68232740","name":"Batch Chunk Plan","description":"Batch Chunk Plan: Batch Chunk Plan plans ordered bounded chunks from item count and chunk size from bounded caller-supplied values without an external provider. Call Batch Chunk Plan before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for Batch Chunk Plan as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. Fir…","url":"https://api.delx.ai/api/v1/x402/batch-chunk-plan","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chunk_size":{"type":"integer","description":"Chunk Size supplied to Batch Chunk Plan; used only for this bounded calculation and processed in memory without retention."},"item_count":{"type":"integer","description":"Item Count supplied to Batch Chunk Plan; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"chunks":[{"count":25,"index":0,"start":0,"end_exclusive":25},{"count":25,"index":1,"start":25,"end_exclusive":50},{"count":25,"index":2,"start":50,"end_exclusive":75},{"count":25,"index":3,"start":75,"end_exclusive":100}],"chunk_count":4},"schema":"delx/util-batch-chunk-plan/v1","status":"pass","evidence":{"retained":false,"input_sha256":"1c1864f89fcfbfd9c21b66bbe5be9c8be513a1fb836166a02d8125ac169ca095","external_calls":0},"operation":"data_batch:batch_chunk_plan"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S1voke89JdxGYq-gVdeHf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes an ordered list of bounded chunk offsets and counts given a total item count and a desired chunk size, returning a versioned deterministic JSON plan.","exampleAgentPrompt":"Split 8500 items into chunks of 200 and give me the full ordered chunk plan with counts and offsets.","exampleUseCases":[{"title":"Paginating large dataset export","prompt":"I need to export 15000 records to a downstream API that only accepts 500 at a time — can you calculate the chunk plan so I know exactly how many batches there are and where each one starts?"},{"title":"Parallel worker job partitioning","prompt":"I'm spinning up parallel workers to process 3200 items and each worker can handle at most 400 items — give me a chunk plan so I can assign each worker its exact range."},{"title":"Pre-flight check before strict contract","prompt":"Before I hand this batch of 9999 items to a tool that requires a strict payload contract, can you compute the chunking plan with a chunk size of 1000 so I can validate the boundaries first?"}],"resultDescription":"Returns a versioned deterministic JSON object containing the ordered list of chunk definitions — each chunk has an index, start offset, and item count — along with aggregate counts (total items, total chunks, chunk size used) and normalized values, all wrapped in a versioned result contract.","failureModes":["item_count or chunk_size missing or non-integer returns a validation error","chunk_size of zero or negative causes a division error","item_count of zero may return an empty chunk plan or an error","payment of $0.001 USDC not provided or rejected by x402 results in a 402 Payment Required response","very large item counts may hit server-side bounds limits"],"whenToPreferThis":"Use this endpoint when an agent needs a precise, deterministic, versioned chunk plan before handing structured batch data to a downstream tool with a strict payload or size contract. Prefer it over writing ad-hoc chunking logic inline when you need reproducible, normalized chunk boundaries with a guaranteed result schema. Ideal for orchestration pipelines where chunk metadata (offsets, counts, total batches) must be passed downstream explicitly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:11:29.658Z","isFirstParty":false}