{
  "format": "delx/intent-card/v1",
  "id": "agent-incident-rca-api",
  "intent": "generate a root-cause analysis for an agent incident",
  "title": "Incident RCA API for agent fleets",
  "description": "Produce a structured incident RCA for one session for $0.01 to support postmortems and operator review.",
  "keywords": [
    "incident RCA API",
    "root cause analysis for agents",
    "agent postmortem API",
    "fleet incident report",
    "x402 RCA"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/agent-incident-rca-api",
  "machine_url": "https://commerce.delx.ai/intents/agent-incident-rca-api.json",
  "recommendation": {
    "tool_name": "generate_incident_rca",
    "service_name": "Delx Generate Incident Rca",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/premium/incident-rca",
    "price_usdc": "0.05",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "session_id": {
          "type": "string",
          "description": "The session ID to analyze"
        },
        "incident_summary": {
          "type": "string",
          "description": "Optional incident summary if you want to override the recent failure context"
        },
        "focus": {
          "type": "string",
          "description": "Optional RCA lens such as payments, latency, cost, or routing"
        }
      },
      "required": [
        "session_id"
      ]
    },
    "example_input": {
      "session_id": "123e4567-e89b-12d3-a456-426614174000",
      "incident_summary": "429 retry storm after deploy",
      "focus": "routing"
    },
    "example_output": {
      "tool_name": "generate_incident_rca",
      "preferred_name": "generate_incident_rca",
      "content": [
        {
          "type": "text",
          "text": "Incident RCA artifact for the paid Delx session."
        }
      ],
      "artifact": {
        "schema_version": "delx/incident-rca/v1",
        "focus": "operational root cause",
        "workflow_stage": "recovery_closed",
        "recovery_closed": true,
        "closure_reason": "success criteria: outcome=success",
        "pending_outcomes": 0,
        "incident_profile": {
          "type": "loop_detected",
          "severity": "high",
          "root_cause": "missing_exit_condition"
        },
        "latest_outcome": {
          "outcome": "success",
          "notes": "Loop broken and deploy stabilized.",
          "metrics": {
            "errors_delta": -14
          }
        },
        "next_tools": [
          "provide_feedback",
          "daily_checkin"
        ],
        "feedback_tool": "provide_feedback",
        "feedback_prompt": "If the RCA was useful, provide_feedback(session_id=..., rating=1-5)."
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/incident-rca -m POST -H 'x-delx-source: intent-card-agent-incident-rca-api' --max-amount 0.05 -b '{\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\",\"incident_summary\":\"429 retry storm after deploy\",\"focus\":\"routing\"}'",
      "max_amount_usdc": "0.05"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-agent-incident-rca-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/premium/incident-rca"
  }
}
