{
  "format": "delx/intent-card/v1",
  "id": "structured-log-summary-api",
  "intent": "Structured Log Summary for an agent workflow",
  "title": "Structured Log Summary API for agents",
  "description": "Summarize log severity and hashed error fingerprints without returning sensitive error lines. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.",
  "keywords": [
    "Structured Log Summary API",
    "Structured Log Summary for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/structured-log-summary-api",
  "machine_url": "https://commerce.delx.ai/intents/structured-log-summary-api.json",
  "recommendation": {
    "tool_name": "util_structured_log_summary",
    "service_name": "Delx Structured Log Summary",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/structured-log-summary",
    "price_usdc": "0.002",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "log_text": {
          "type": "string",
          "maxLength": 1000000
        }
      },
      "required": [
        "log_text"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "log_text": "2026-08-05T12:00:00Z ERROR upstream timeout"
    },
    "example_output": {
      "schema": "delx/structured-log-summary/v1",
      "line_count": 1,
      "levels": {
        "debug": 0,
        "info": 0,
        "warn": 0,
        "error": 1,
        "fatal": 0,
        "unknown": 0
      },
      "top_error_fingerprints": [
        {
          "fingerprint_sha256": "0759957d9c439e32e2a7bbba57c58a6845d5af90aa85cc87d96b6a108d7130dc",
          "count": 1
        }
      ],
      "raw_error_lines_returned": false
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/structured-log-summary -m POST -H 'x-delx-source: intent-card-structured-log-summary-api' --max-amount 0.002 -b '{\"log_text\":\"2026-08-05T12:00:00Z ERROR upstream timeout\"}'",
      "max_amount_usdc": "0.002"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-structured-log-summary-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/structured-log-summary"
  }
}
