{
  "format": "delx/intent-card/v1",
  "id": "csp-directive-parse-api",
  "intent": "CSP Directive Parse for an agent workflow",
  "title": "CSP Directive Parse API for agents",
  "description": "CSP Directive Parse: CSP Directive Parse parses Content-Security-Policy directives into normalized source lists from bounded caller-supplied values without an external provider. Call CSP Directive Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for CSP Directive Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only execution with no paid upstream, live RPC, web search, credentials, custody, signing, media generator, or input retention. Honest limit: Evaluates only caller-supplied metadata; it performs no DNS lookup, HTTP request, web search, credential use, or persistent storage. Advisory output only; the buyer owns authorization, payment policy, and production decisions.",
  "keywords": [
    "CSP Directive Parse API",
    "CSP Directive Parse for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/csp-directive-parse-api",
  "machine_url": "https://commerce.delx.ai/intents/csp-directive-parse-api.json",
  "recommendation": {
    "tool_name": "util_csp_directive_parse",
    "service_name": "CSP Directive Parse",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/csp-directive-parse",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "header": {
          "type": "string",
          "maxLength": 8192,
          "description": "Header supplied to CSP Directive Parse; used only for this bounded calculation and processed in memory without retention."
        }
      },
      "required": [
        "header"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "header": "default-src 'self'; img-src 'self' https:; object-src 'none'"
    },
    "example_output": {
      "schema": "delx/util-csp-directive-parse/v1",
      "operation": "web_reliability:csp_directive_parse",
      "status": "pass",
      "result": {
        "directives": {
          "default-src": [
            "'self'"
          ],
          "img-src": [
            "'self'",
            "https:"
          ],
          "object-src": [
            "'none'"
          ]
        },
        "count": 3
      },
      "evidence": {
        "input_sha256": "16664d9b05dde627e8d811fbffe5a404de8cef67d018c7c5f1017d3fed519e30",
        "retained": false,
        "external_calls": 0
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/csp-directive-parse -m POST -H 'x-delx-source: intent-card-csp-directive-parse-api' --max-amount 0.001 -b '{\"header\":\"default-src '\"'\"'self'\"'\"'; img-src '\"'\"'self'\"'\"' https:; object-src '\"'\"'none'\"'\"'\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-csp-directive-parse-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/csp-directive-parse"
  }
}
