{
  "openapi": "3.1.0",
  "info": {
    "title": "ToolMint x402 Listing Doctor",
    "version": "0.1.0",
    "description": "Lint any x402 endpoint the way buyer agents and Bazaar catalogs see it: unpaid probe, decoded 402, accepts/bazaar/well-known/openapi checks, scored fix list (GET /check?url=https://...). Pay per call with USDC on Base via x402.",
    "x-guidance": "Call GET /check?url=<https URL of a paid x402 GET route>. The doctor makes one unpaid request to it plus /.well-known/x402 and /openapi.json on the same origin, then returns score, grade, checks[] (pass/warn/fail/info with fix lines), offers[] and decoded requirements. Bad URLs get 400 before payment; unreachable targets get 502 and are not charged.",
    "contact": {
      "email": "toolmint.dev@gmail.com",
      "name": "ToolMint"
    }
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/check": {
      "get": {
        "operationId": "x402_listing_check",
        "summary": "Lint an x402 endpoint listing",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "10000"
        },
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "https URL of a paid x402 resource"
          }
        ],
        "responses": {
          "200": {
            "description": "Doctor report JSON"
          },
          "400": {
            "description": "Bad or blocked URL (no charge)"
          },
          "402": {
            "description": "Payment Required"
          },
          "502": {
            "description": "Target unreachable (no charge)"
          }
        }
      }
    }
  }
}