{"uid":"cap_4qySsT65Ch32RGdLLp1c0","slug":"delx-cost-per-success-5ca3fcae","name":"Delx Cost Per Success","description":"Compute cost per successful delivery from total cost and success count — call when dividing total cost by successful deliveries. 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, web search, or…","url":"https://api.delx.ai/api/v1/x402/cost-per-success?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"total_cost":{"type":"number","description":"Total cost incurred in the window."},"success_count":{"type":"number","description":"Number of successful deliveries."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-cost-per-success/v1","total_cost":12.5,"success_count":50,"cost_per_success":0.25}},"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_eZ69niZfStuwftSVWGqyL","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":"Computes cost per successful delivery by dividing total cost by the number of successful deliveries","exampleAgentPrompt":"We spent $4,200 total this week and had 1,400 successful deliveries — what was our cost per success?","exampleUseCases":[{"title":"Weekly SRE cost efficiency review","prompt":"Our total infrastructure cost this sprint was $12,500 and we had 3,200 successful deliveries. What was our cost per successful delivery?"},{"title":"Incident post-mortem unit cost","prompt":"During last night's incident we spent $870 total and only 290 requests succeeded. Can you calculate our cost per success during that window?"},{"title":"Comparing two deployment strategies","prompt":"Deployment A cost $5,000 with 2,500 successes, and deployment B cost $6,000 with 3,500 successes. Calculate the cost per success for both so I can compare efficiency."}],"resultDescription":"A deterministic JSON object containing the computed cost-per-success value, derived by dividing total_cost by success_count. The response is machine-readable and stateless, with no upstream data fetched.","failureModes":["Division by zero if success_count is 0 or missing","Missing required fields (total_cost or success_count) result in validation error","Non-numeric inputs cause schema rejection","Negative values may produce nonsensical results if not validated by caller"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, serverless computation of cost-per-success from raw totals — especially in SRE, ops, or delivery pipeline contexts where you want a zero-dependency, stateless calculation without maintaining your own math logic. Prefer it over general-purpose code execution when you want a reliable, auditable, cheap API call that returns structured JSON directly consumable by downstream agents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:01.018Z","isFirstParty":false,"canonicalSlug":"delx-cost-per-success-5ca3fcae"}