{"uid":"cap_4n3df3hjEeX-DZt6iHc2i","slug":"batch-error-budget-check-83db7d3b","name":"Batch Error Budget Check","description":"Batch Error Budget Check: Batch Error Budget Check checks failed item count and fraction against caller budgets from bounded caller-supplied values without an external provider. Call Batch Error Budget Check 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 Error Budget Check as versioned deterministic JSON. Price:…","url":"https://api.delx.ai/api/v1/x402/batch-error-budget-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"total":{"type":"integer","description":"Total supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."},"failed":{"type":"integer","description":"Failed supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_failed":{"type":"integer","description":"Maximum Failed supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_failure_fraction":{"type":"number","description":"Maximum Failure Fraction supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"within_budget":true,"failure_fraction":0.02},"schema":"delx/util-batch-error-budget-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"8b15167fa2df66d4e3d2a52dd4444cb183d36be4420fe605061ab083c80646bd","external_calls":0},"operation":"data_batch:batch_error_budget_check"}},"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_jQFwtewe0S3MygPWRl8a5","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's failed item count and failure fraction are within caller-specified budget thresholds, returning bounded counts, normalized values, and a versioned deterministic result.","exampleAgentPrompt":"Before we send this batch downstream, check if it's within budget — we processed 500 items total, 23 failed, and our limits are a maximum of 30 failures and a maximum failure fraction of 0.06.","exampleUseCases":[{"title":"Pre-pipeline batch quality gate","prompt":"We just ran a batch of 1000 records and 47 came back with errors. Before we push the results to our data warehouse, check if that's within our error budget of 50 max failures and a 0.05 maximum failure fraction."},{"title":"Agent workflow safety check","prompt":"My agent finished processing a batch of 200 tasks with 12 failures. Can you verify this passes our error budget before it hands the results to the downstream contract validator? Max allowed failures is 15, max fraction is 0.08."},{"title":"ETL batch failure rate validation","prompt":"We ran an ETL job on 750 rows and 60 failed. Our tolerance is a maximum of 40 failed items and a maximum failure fraction of 0.07 — tell me if we're over budget."}],"resultDescription":"Returns a versioned deterministic JSON object containing the bounded failure count, normalized failure fraction, whether each threshold was exceeded, and a versioned result contract indicating pass or fail against both the absolute failure count budget and the maximum failure fraction budget.","failureModes":["Missing required fields (total, failed, maximum_failed, or maximum_failure_fraction) result in a validation error","Non-integer values for total or failed fields cause a schema rejection","failed greater than total may return an error or undefined behavior","maximum_failure_fraction outside [0,1] range may produce unexpected results","Network or payment failure results in no response"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, in-memory check of whether a batch's failure rate is within caller-defined budgets before passing structured data to a downstream tool with a strict contract. Prefer this over custom logic when you need a versioned, auditable result with normalized values and no external dependencies or data retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:11:14.623Z","isFirstParty":false}