{
  "x402Version": 2,
  "schema_version": "2024-11-05",
  "name": "x402-cluster",
  "description": "Zero-signup web scraping, HTML-to-JSON extraction & compliance checks on Base L2 ($0.01 USDC/call).",
  "version": "3.1.0",
  "info": {
    "title": "x402 Structured Data & URL Scraper",
    "description": "Zero-signup web scraping, HTML-to-JSON extraction & compliance checks on Base L2 ($0.01 USDC/call).",
    "contact": {
      "name": "greatscottatl",
      "url": "https://github.com/greatscottatl"
    }
  },
  "pricing": {
    "price_per_call": "0.0100",
    "currency": "USDC",
    "network": "Base L2 (8453)",
    "scheme": "EIP-3009",
    "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  },
  "endpoints": {
    "execute": "/v1/execute",
    "mcp": "/v1/mcp.json",
    "terms": "/terms"
  },
  "paid_routes": [
    {
      "path": "/v1/execute",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0xB5b53744cBb19FCA04d20E560873f5ae2643E86D"
        }
      ]
    }
  ],
  "tools": [
    {
      "name": "extract_structured_data",
      "description": "Convert raw text, email bodies, receipts, logs, or HTML snippets already in memory into strict typed JSON conforming to target_schema. Use when you already have the source text and need deterministic schema enforcement without burning local reasoning tokens. Strictly capped at 6,000 bytes.",
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      },
      "inputSchema": {
        "type": "object",
        "properties": {
          "raw_text": {
            "type": "string",
            "maxLength": 6000,
            "description": "Unstructured text, HTML fragment, or document snippet to normalize (max 6,000 bytes)."
          },
          "target_schema": {
            "type": "object",
            "description": "Declarative key-type map defining the exact JSON structure to return."
          }
        },
        "required": [
          "raw_text"
        ]
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0xB5b53744cBb19FCA04d20E560873f5ae2643E86D"
        }
      ]
    },
    {
      "name": "parse_web_schema",
      "description": "Fast key-value entity extraction from raw web or document text when you only need a flat list of named fields rather than a full nested JSON Schema. Ideal for pulling contacts, dates, tickers, or metadata out of messy text (max 6,000 bytes).",
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      },
      "inputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "maxLength": 6000,
            "description": "Raw web or document text to scan (max 6,000 bytes)."
          },
          "fields": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            },
            "description": "Exact entity or field names to extract as keys."
          }
        },
        "required": [
          "content",
          "fields"
        ]
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0xB5b53744cBb19FCA04d20E560873f5ae2643E86D"
        }
      ]
    },
    {
      "name": "validate_compliance",
      "description": "Audit a JSON payload against regulatory, PII, or business policy rules before executing downstream transactions or API writes. Returns pass/fail status and specific rule violations (e.g., PII exposure, OFAC/KYC checks, field bounds).",
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": false
      },
      "inputSchema": {
        "type": "object",
        "properties": {
          "payload": {
            "type": "object",
            "description": "Structured JSON object to audit against compliance rules."
          },
          "rules": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Natural-language or policy rules the payload must satisfy."
          }
        },
        "required": [
          "payload"
        ]
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0xB5b53744cBb19FCA04d20E560873f5ae2643E86D"
        }
      ]
    },
    {
      "name": "extract_from_url",
      "description": "Fetch a public webpage URL, strip HTML/navigation boilerplate, and return strict typed JSON matching target_schema in one atomic step. Use instead of generic scrapers to save context-window tokens and avoid post-processing. Best for articles, product pages, docs, and listings (static HTML; does not solve CAPTCHAs).",
      "annotations": {
        "readOnlyHint": true,
        "openWorldHint": true
      },
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Public HTTP or HTTPS webpage URL to fetch and parse."
          },
          "target_schema": {
            "type": "object",
            "description": "JSON object defining desired output keys and expected types."
          }
        },
        "required": [
          "url",
          "target_schema"
        ]
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "amount": "10000",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0xB5b53744cBb19FCA04d20E560873f5ae2643E86D"
        }
      ]
    }
  ]
}