{
  "openapi": "3.1.0",
  "info": {
    "title": "US Severe Weather Alerts MCP",
    "description": "Active National Weather Service warnings for any US ZIP code. Free weather_alerts tool.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with an X-PAYMENT header (x402 v1, scheme exact, USDC on Base). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://us-weather-alerts-mcp.donniertf.workers.dev/mcp. Manifest: https://us-weather-alerts-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.0.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://us-weather-alerts-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with an X-PAYMENT header (x402, USDC on Base). The MCP transport is at /mcp. Active National Weather Service warnings for any US ZIP code. Free weather_alerts tool."
  },
  "servers": [
    {
      "url": "https://us-weather-alerts-mcp.donniertf.workers.dev",
      "description": "US Severe Weather Alerts MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/weather_alerts": {
      "post": {
        "summary": "FREE. Active National Weather Service alerts (warnings, watches, advisories) for a US ZIP code — top 3 by severity.",
        "description": "FREE. Active National Weather Service alerts (warnings, watches, advisories) for a US ZIP code — top 3 by severity.",
        "operationId": "post_x402_weather_alerts",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "zip": {
                    "type": "string"
                  }
                },
                "required": [
                  "zip"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "FREE. Active National Weather Service alerts (warnings, watches, advisories) for a US ZIP code — top 3 by severity. (query or 402 probe)",
        "description": "FREE. Active National Weather Service alerts (warnings, watches, advisories) for a US ZIP code — top 3 by severity. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_weather_alerts",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/sites_check": {
      "post": {
        "summary": "PRO. Check up to 25 ZIPs (stores, job sites, fleet depots, properties) for active alerts at once, worst first.",
        "description": "PRO. Check up to 25 ZIPs (stores, job sites, fleet depots, properties) for active alerts at once, worst first.",
        "operationId": "post_x402_sites_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "zips": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "min_severity": {
                    "type": "string"
                  }
                },
                "required": [
                  "zips"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Check up to 25 ZIPs (stores, job sites, fleet depots, properties) for active alerts at once, worst first. (query or 402 probe)",
        "description": "PRO. Check up to 25 ZIPs (stores, job sites, fleet depots, properties) for active alerts at once, worst first. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_sites_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "zips",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "min_severity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/state_alerts": {
      "post": {
        "summary": "PRO. All active alerts in a state, filterable by event (e.g. 'Tornado', 'Flood', 'Heat') and severity, with instructions.",
        "description": "PRO. All active alerts in a state, filterable by event (e.g. 'Tornado', 'Flood', 'Heat') and severity, with instructions.",
        "operationId": "post_x402_state_alerts",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string"
                  },
                  "event": {
                    "type": "string"
                  },
                  "min_severity": {
                    "type": "string"
                  }
                },
                "required": [
                  "state"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. All active alerts in a state, filterable by event (e.g. 'Tornado', 'Flood', 'Heat') and severity, with instructions. (query or 402 probe)",
        "description": "PRO. All active alerts in a state, filterable by event (e.g. 'Tornado', 'Flood', 'Heat') and severity, with instructions. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_state_alerts",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "event",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_severity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}