{
"total_cost": 12.5,
"success_count": 50
}
Agent operations math · agent-ops-math
Delx Cost Per Success
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 media generation. Results are advisory; the caller owns authorization and production controls.
One-command purchase
Run it from an agent.
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/cost-per-success -m POST -H 'x-delx-source: product-page' --max-amount 0.003 -b '{"total_cost":12.5,"success_count":50}'
{
"schema": "delx/util-cost-per-success/v1",
"total_cost": 12.5,
"success_count": 50,
"cost_per_success": 0.25
}
Machine-readable evidence