{"uid":"cap_X5ZL6hCWq2wQeCuLeksOs","slug":"batch-completion-gate-6b1d5e8b","name":"Batch Completion Gate","description":"Batch Completion Gate: Batch Completion Gate checks terminal item coverage and minimum success fraction from bounded caller-supplied values without an external provider. Call Batch Completion Gate 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 Completion Gate as versioned deterministic JSON. Price: $0.001 USDC vi…","url":"https://api.delx.ai/api/v1/x402/batch-completion-gate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"total":{"type":"integer","description":"Total supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."},"failed":{"type":"integer","description":"Failed supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."},"pending":{"type":"integer","description":"Pending supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."},"succeeded":{"type":"integer","description":"Succeeded supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."},"minimum_success_fraction":{"type":"number","description":"Minimum Success Fraction supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"accepted":true,"terminal":true,"success_fraction":0.98,"counts_consistent":true},"schema":"delx/util-batch-completion-gate/v1","status":"pass","evidence":{"retained":false,"input_sha256":"45cc9ea2025aa13c530cde0b88f740e2a6bf1c0fe987a0a48ab911605f109e36","external_calls":0},"operation":"data_batch:batch_completion_gate"}},"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_GqTz0GhsjH1R3GR19m9zw","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":"Validates whether a batch of items meets terminal coverage and a minimum success fraction threshold, returning counts, normalized values, and a pass/fail verdict.","exampleAgentPrompt":"Before we pass these results to the next stage, check if the batch meets our minimum success threshold — we ran 200 total tasks, 162 succeeded, 18 failed, and 20 are still pending, and we need at least 80% success to proceed.","exampleUseCases":[{"title":"Pipeline stage gating for agent fleet","prompt":"We just finished processing 500 records in the first pipeline stage — 430 succeeded, 45 failed, and 25 are still pending. Check if we've hit our 85% minimum success fraction before we hand off to the enrichment step."},{"title":"Batch job completion check before DB commit","prompt":"Before we commit this batch to the database, verify the results: 1000 total items, 910 succeeded, 60 failed, 30 pending — do we clear the 90% success threshold?"},{"title":"Agent task orchestration quality gate","prompt":"My agent fleet ran 75 subtasks total, 58 succeeded and 12 failed, 5 still running. Does that meet a minimum success fraction of 0.75 so I can finalize the report?"}],"resultDescription":"Returns a versioned deterministic JSON object containing: a pass/fail completion verdict, the computed success fraction (normalized), raw counts for succeeded/failed/pending/total items, and a versioned result contract identifier for reproducibility.","failureModes":["Invalid input types (non-integer counts) cause rejection","Negative counts or counts exceeding total may produce unexpected results","minimum_success_fraction outside [0,1] range may cause errors","Missing required fields (total, succeeded) may return incomplete verdict","Network errors result in no verdict being returned"],"whenToPreferThis":"Use this endpoint when an AI agent or workflow orchestrator needs a deterministic, stateless pass/fail gate on batch completion before handing off to a downstream tool with stricter contracts. Prefer it over custom logic when you need a versioned, reproducible result contract and normalized success metrics without building the validation yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:13:48.853Z","isFirstParty":false,"canonicalSlug":"batch-completion-gate-6b1d5e8b"}