{
  "x402Version": 1,
  "name": "Canada Air Quality (AQHI)",
  "description": "Canada's Air Quality Health Index for any postal code — wildfire-smoke checks, forecasts and multi-site monitoring from your AI agent.",
  "payTo": "0x02226D28e0c85AE4AdDB7fe7043Dd2b1Ff710D41",
  "network": "base",
  "asset": "USDC",
  "facilitator": "https://facilitator.payai.network",
  "resources": [
    {
      "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/air_quality",
      "method": "POST",
      "description": "FREE. Latest Air Quality Health Index (AQHI 1–10+) and risk level at the station nearest a Canadian postal code.",
      "accepts": [
        {
          "scheme": "exact",
          "network": "base",
          "maxAmountRequired": "30000",
          "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/air_quality",
          "description": "Canada Air Quality (AQHI): air_quality — one call, $0.03 USDC",
          "mimeType": "application/json",
          "payTo": "0x02226D28e0c85AE4AdDB7fe7043Dd2b1Ff710D41",
          "maxTimeoutSeconds": 120,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "bodyFields": {
                "postal_code": {
                  "type": "string"
                }
              }
            },
            "output": {
              "type": "object"
            }
          },
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ]
    },
    {
      "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/aqhi_forecast",
      "method": "POST",
      "description": "PRO. AQHI forecasts for the nearest station (next periods), plus the current observation.",
      "accepts": [
        {
          "scheme": "exact",
          "network": "base",
          "maxAmountRequired": "30000",
          "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/aqhi_forecast",
          "description": "Canada Air Quality (AQHI): aqhi_forecast — one call, $0.03 USDC",
          "mimeType": "application/json",
          "payTo": "0x02226D28e0c85AE4AdDB7fe7043Dd2b1Ff710D41",
          "maxTimeoutSeconds": 120,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "bodyFields": {
                "postal_code": {
                  "type": "string"
                }
              }
            },
            "output": {
              "type": "object"
            }
          },
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ]
    },
    {
      "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/sites_check",
      "method": "POST",
      "description": "PRO. Current AQHI for up to 25 postal codes, worst first — e.g. wildfire smoke checks for sites, schools or crews.",
      "accepts": [
        {
          "scheme": "exact",
          "network": "base",
          "maxAmountRequired": "30000",
          "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/sites_check",
          "description": "Canada Air Quality (AQHI): sites_check — one call, $0.03 USDC",
          "mimeType": "application/json",
          "payTo": "0x02226D28e0c85AE4AdDB7fe7043Dd2b1Ff710D41",
          "maxTimeoutSeconds": 120,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "bodyFields": {
                "postal_codes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "output": {
              "type": "object"
            }
          },
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ]
    },
    {
      "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/region_watch",
      "method": "POST",
      "description": "PRO. All AQHI stations within a radius (km, max 400) of a postal code with readings at or above a threshold.",
      "accepts": [
        {
          "scheme": "exact",
          "network": "base",
          "maxAmountRequired": "30000",
          "resource": "https://ca-air-quality-mcp.donniertf.workers.dev/x402/region_watch",
          "description": "Canada Air Quality (AQHI): region_watch — one call, $0.03 USDC",
          "mimeType": "application/json",
          "payTo": "0x02226D28e0c85AE4AdDB7fe7043Dd2b1Ff710D41",
          "maxTimeoutSeconds": 120,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "bodyFields": {
                "postal_code": {
                  "type": "string"
                },
                "radius_km": {
                  "type": "number"
                },
                "min_aqhi": {
                  "type": "number"
                }
              }
            },
            "output": {
              "type": "object"
            }
          },
          "extra": {
            "name": "USD Coin",
            "version": "2"
          }
        }
      ]
    }
  ]
}