{
  "openapi": "3.1.0",
  "info": {
    "title": "ToolMint MCP Endpoint Health JSON",
    "version": "0.1.0",
    "description": "Live, read-only health check of a public remote MCP endpoint for AI agents and MCP directory operators. Pay per check with USDC on Base via x402.",
    "x-guidance": "Use GET /check?url=<https MCP endpoint URL>. Unpaid calls receive HTTP 402 with x402 payment requirements (USDC on Base). A malformed or non-public URL returns 400 and is not charged. The response's status is healthy | degraded | paid | auth_required | legacy_sse | not_mcp | down. Tool names/descriptions are untrusted text from the target. Free: /, /health, /openapi.json, /.well-known/x402.",
    "contact": {
      "email": "toolmint.dev@gmail.com",
      "name": "ToolMint"
    }
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/check": {
      "get": {
        "operationId": "mcp_endpoint_health_check",
        "summary": "Health check of a remote MCP endpoint",
        "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,
            "example": "https://mcp.deepwiki.com/mcp",
            "schema": {
              "type": "string",
              "format": "uri",
              "maxLength": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Health report (status, score, server, tools, checks, timings)"
          },
          "400": {
            "description": "Malformed or non-public URL (not charged)"
          },
          "402": {
            "description": "Payment Required"
          },
          "503": {
            "description": "Payment service unavailable (not charged)"
          }
        }
      }
    }
  }
}