{
  "format": "delx/intent-card/v1",
  "id": "success-rate-api",
  "intent": "Success Rate for an agent workflow",
  "title": "Success Rate API for agents",
  "description": "Compute success and failure rates from success and total counts — call when computing success and failure rates from counts. 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.",
  "keywords": [
    "Success Rate API",
    "Success Rate for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/success-rate-api",
  "machine_url": "https://commerce.delx.ai/intents/success-rate-api.json",
  "recommendation": {
    "tool_name": "util_success_rate",
    "service_name": "Delx Success Rate",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/success-rate",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "success": {
          "description": "Count of successful outcomes.",
          "type": "number"
        },
        "total": {
          "description": "Total attempts or events.",
          "type": "number"
        }
      },
      "required": [
        "success",
        "total"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "success": 97,
      "total": 100
    },
    "example_output": {
      "schema": "delx/util-success-rate/v1",
      "success": 97,
      "total": 100,
      "success_rate_percent": 97,
      "failure_rate_percent": 3
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/success-rate -m POST -H 'x-delx-source: intent-card-success-rate-api' --max-amount 0.003 -b '{\"success\":97,\"total\":100}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-success-rate-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/success-rate"
  }
}
