{"uid":"cap_iPycIQQeEVi5zLlvk9Deb","slug":"delx-error-budget-plan-ba4ff8c1","name":"Delx Error Budget Plan","description":"Convert an SLO percentage and request window into allowed failure budget — call when converting SLO% and request window into allowed failures. Use for SRE/ops math agents buy from broad utility catalogs: SLA, error budget, success rate, and health scores with zero upstream cost. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, w…","url":"https://api.delx.ai/api/v1/x402/error-budget-plan","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"slo_percent":{"type":"number","description":"Service level objective as a percent (e.g. 99.9)."},"window_requests":{"type":"number","description":"Request count in the error-budget window."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-error-budget-plan/v1","slo_percent":99.9,"budget_percent":0.1,"window_requests":100000,"allowed_failures":100}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nNBk5AUsFo0qu9y5K_6Dm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an SLO percentage and a request window size into the maximum number of allowed failures (error budget) for that window","exampleAgentPrompt":"How many failures am I allowed if my SLO is 99.9% and I expect 2 million requests in the window? Give me the error budget breakdown.","exampleUseCases":[{"title":"Incident threshold for SRE runbook","prompt":"We have a 99.95% SLO and our weekly traffic window is about 800,000 requests — how many failures are we actually allowed before we breach? I need this for our incident runbook."},{"title":"Capacity planning for new service","prompt":"I'm planning a new service with a 99.9% availability target and we expect roughly 5 million requests per month. What's my error budget in terms of allowed failures?"},{"title":"Alert threshold configuration","prompt":"I want to set up alerts before we burn through our error budget. Our SLO is 99.5% and we're tracking a rolling window of 250,000 requests — compute how many errors we can tolerate so I can wire up the threshold."}],"resultDescription":"A deterministic JSON object containing the computed error budget — specifically the number of allowed failures derived from the SLO percentage and total request window count, useful for setting alert thresholds, runbooks, and reliability dashboards.","failureModes":["Missing slo_percent or window_requests fields returns a validation error","slo_percent outside 0–100 range may return an error or unexpected result","Non-numeric inputs for either field will fail schema validation","Very large window_requests values may produce floating-point rounding in the result"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, deterministic calculation to convert an SLO percentage and request volume into an allowed failure count — especially in SRE automation pipelines, alert threshold configuration, or ops math agents where you want zero upstream cost and stateless execution. Prefer over general-purpose LLM math when you need reliable, reproducible JSON output at $0.003 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:55:08.478Z","isFirstParty":false}