{"uid":"cap_1A3QvhnX4-CR0HfSlyV5m","slug":"delx-error-budget-295b16f3","name":"Delx Error Budget","description":"Calculate remaining failure budget and burn from traffic, failures, and an SLO target. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.","url":"https://api.delx.ai/api/v1/x402/error-budget","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"target_percent":{"type":"number","default":99.9,"maximum":100,"minimum":0},"total_requests":{"type":"integer","minimum":0},"failed_requests":{"type":"integer","minimum":0}}},"responseSchema":{"type":"json","example":{"schema":"delx/error-budget/v1","exhausted":false,"burn_percent":20.202,"target_percent":99.9,"total_requests":100000,"failed_requests":20,"allowed_failures":99,"remaining_failures":79}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gFHw2Wh77x41vE5aGLozh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculate remaining error budget and burn rate from total requests, failed requests, and an SLO target percentage","exampleAgentPrompt":"We've had 142 failed requests out of 50,000 total this hour — can you calculate our remaining error budget assuming a 99.9% SLO target?","exampleUseCases":[{"title":"Pre-deploy reliability gate check","prompt":"Before we push this change, we had 87 failures out of 120,000 requests with a 99.95% SLO — do we still have enough error budget left to safely proceed?"},{"title":"Autonomous retry safety check","prompt":"My workflow is about to retry a batch of 500 requests that previously failed — we've already seen 300 failures out of 200,000 total today on a 99.9% SLO. Can you check if we have the budget to absorb more failures?"},{"title":"End-of-day SLO burn report","prompt":"We finished the day with 1,250 failed requests out of 500,000 total. What does our error budget look like against our 99.8% SLO target?"}],"resultDescription":"Returns a bounded machine-readable JSON object containing the calculated error budget — including allowed failures, failures consumed, remaining budget (count and percentage), and burn rate — derived deterministically from the supplied total_requests, failed_requests, and target_percent inputs. No upstream provider is called; the computation is local and stateless.","failureModes":["Invalid input values (e.g. failed_requests > total_requests) return a structured validation error without billing","target_percent outside 0–100 range returns a validation failure","Non-integer request counts cause schema validation errors","Network or payment authorization failures may prevent execution"],"whenToPreferThis":"Choose this endpoint when an AI agent or autonomous workflow needs a fast, cheap, deterministic SLO error-budget calculation without standing up its own math logic — especially as a preflight gate before retries, API changes, or actions on untrusted input. Ideal for agent pipelines that need bounded, machine-readable reliability signals at $0.002 per call with no external data dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:51.280Z","isFirstParty":false}