{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "usgs-water.caseyjhand.com",
    "site": "caseyjhand.com",
    "addresses": [
      {
        "address": "104.26.11.117",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.26.0.0/20",
          "country": "US"
        }
      },
      {
        "address": "172.67.72.95",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.64.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.26.10.117",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.26.0.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::ac43:485f",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::681a:b75",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::681a:a75",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.26.11.117",
          "172.67.72.95",
          "104.26.10.117",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:b75",
          "2606:4700:20::681a:a75"
        ],
        "first_seen": "2026-11-23T21:46:01.759Z",
        "last_seen": "2026-11-23T21:46:01.759Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.26.11.117",
          "104.26.10.117",
          "172.67.72.95",
          "2606:4700:20::681a:b75",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:a75"
        ],
        "first_seen": "2026-11-22T21:45:02.553Z",
        "last_seen": "2026-11-22T21:45:02.553Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.26.11.117",
          "172.67.72.95",
          "104.26.10.117",
          "2606:4700:20::681a:b75",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:a75"
        ],
        "first_seen": "2026-11-21T17:19:00.603Z",
        "last_seen": "2026-11-21T17:19:00.603Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "usgs-water-mcp-server",
      "version": "0.7.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=63072000; includeSubDomains; preload",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 130,
      "sample": [
        {
          "id": "6671",
          "url": "https://mcp.amperis.com/mcp",
          "server_name": "com.amperis/catalog",
          "last_state": "listed",
          "last_checked_at": "2026-11-24T07:57:03.509Z"
        },
        {
          "id": "28574",
          "url": "https://art-institute-chicago.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:37:01.527Z"
        },
        {
          "id": "28575",
          "url": "https://arxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/arxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:38:00.625Z"
        },
        {
          "id": "28576",
          "url": "https://astronomy.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/astronomy-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:39:01.005Z"
        },
        {
          "id": "28577",
          "url": "https://aviation-weather.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/aviation-weather-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:40:10.861Z"
        },
        {
          "id": "28578",
          "url": "https://biorxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/biorxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:41:00.756Z"
        },
        {
          "id": "28579",
          "url": "https://bls-labor.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bls-labor-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:42:00.955Z"
        },
        {
          "id": "28580",
          "url": "https://bluesky.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bluesky-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:43:00.549Z"
        },
        {
          "id": "28581",
          "url": "https://brapi.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/brapi-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:44:00.711Z"
        },
        {
          "id": "28582",
          "url": "https://browser-compat.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/browser-compat-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:45:00.960Z"
        },
        {
          "id": "28583",
          "url": "https://calculator.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/calculator-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:46:00.997Z"
        },
        {
          "id": "28584",
          "url": "https://canada-parliament.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/canada-parliament-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:47:00.399Z"
        },
        {
          "id": "28585",
          "url": "https://cdc.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cdc-health-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:48:01.098Z"
        },
        {
          "id": "28586",
          "url": "https://census.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/census-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:49:01.578Z"
        },
        {
          "id": "28587",
          "url": "https://cern-inspire.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-inspire-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:50:01.801Z"
        },
        {
          "id": "28588",
          "url": "https://cern-opendata.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-opendata-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:51:01.501Z"
        },
        {
          "id": "28589",
          "url": "https://chembl.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/chembl-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:52:10.758Z"
        },
        {
          "id": "28590",
          "url": "https://cisa-cybersecurity.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:53:01.929Z"
        },
        {
          "id": "28591",
          "url": "https://clinicaltrials.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:54:01.031Z"
        },
        {
          "id": "28592",
          "url": "https://college-scorecard.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/college-scorecard-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:55:04.313Z"
        }
      ]
    },
    "same_site": {
      "total": 133,
      "sample": [
        {
          "id": "28574",
          "url": "https://art-institute-chicago.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:37:01.527Z"
        },
        {
          "id": "28575",
          "url": "https://arxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/arxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:38:00.625Z"
        },
        {
          "id": "28576",
          "url": "https://astronomy.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/astronomy-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:39:01.005Z"
        },
        {
          "id": "28577",
          "url": "https://aviation-weather.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/aviation-weather-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:40:10.861Z"
        },
        {
          "id": "28578",
          "url": "https://biorxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/biorxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:41:00.756Z"
        },
        {
          "id": "28579",
          "url": "https://bls-labor.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bls-labor-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:42:00.955Z"
        },
        {
          "id": "28580",
          "url": "https://bluesky.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bluesky-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:43:00.549Z"
        },
        {
          "id": "28581",
          "url": "https://brapi.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/brapi-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:44:00.711Z"
        },
        {
          "id": "28582",
          "url": "https://browser-compat.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/browser-compat-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:45:00.960Z"
        },
        {
          "id": "28583",
          "url": "https://calculator.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/calculator-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:46:00.997Z"
        },
        {
          "id": "28584",
          "url": "https://canada-parliament.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/canada-parliament-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:47:00.399Z"
        },
        {
          "id": "28585",
          "url": "https://cdc.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cdc-health-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:48:01.098Z"
        },
        {
          "id": "28586",
          "url": "https://census.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/census-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:49:01.578Z"
        },
        {
          "id": "28587",
          "url": "https://cern-inspire.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-inspire-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:50:01.801Z"
        },
        {
          "id": "28588",
          "url": "https://cern-opendata.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-opendata-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:51:01.501Z"
        },
        {
          "id": "28589",
          "url": "https://chembl.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/chembl-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:52:10.758Z"
        },
        {
          "id": "28590",
          "url": "https://cisa-cybersecurity.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:53:01.929Z"
        },
        {
          "id": "28591",
          "url": "https://clinicaltrials.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:54:01.031Z"
        },
        {
          "id": "28592",
          "url": "https://college-scorecard.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/college-scorecard-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:55:04.313Z"
        },
        {
          "id": "28593",
          "url": "https://congressgov.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/congressgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:56:11.093Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.cyanheads",
      "total": 165,
      "sample": [
        {
          "name": "io.github.cyanheads/anime-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/arxiv-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/astronomy-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/attack-surface-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/aviation-weather-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/biorxiv-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bls-labor-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bls-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bluesky-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/brapi-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/browser-compat-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/calculator-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/canada-parliament-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cdc-health-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/census-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cern-inspire-mcp-server",
          "title": "cern-inspire-mcp-server"
        },
        {
          "name": "io.github.cyanheads/cern-opendata-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/chembl-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "title": null
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/cyanheads/usgs-water-mcp-server",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "28699",
    "server_name": "io.github.cyanheads/usgs-water-mcp-server",
    "url": "https://usgs-water.caseyjhand.com/mcp",
    "host": "usgs-water.caseyjhand.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T21:46:01.759Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "2b52d5347eb10583a7f14d189412e5eb6901741f6df842648dd9924c16a12d43",
    "first_listed_at": "2026-11-21T17:19:00.603Z",
    "created_at": "2026-11-21T09:30:14.679Z",
    "resolved_addresses": [
      "104.26.11.117",
      "172.67.72.95",
      "104.26.10.117",
      "2606:4700:20::ac43:485f",
      "2606:4700:20::681a:b75",
      "2606:4700:20::681a:a75"
    ]
  },
  "server": {
    "name": "io.github.cyanheads/usgs-water-mcp-server",
    "title": null,
    "description": "Query real-time and historical USGS water data from ~8,000 stream gages and groundwater wells.",
    "version": "0.7.0",
    "registry_status": "active",
    "repository_url": "https://github.com/cyanheads/usgs-water-mcp-server",
    "website_url": null,
    "published_at": "2026-11-23T17:37:10.219Z",
    "updated_at": "2026-11-23T17:37:10.219Z",
    "first_seen": "2026-11-21T09:30:14.117Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-23T21:46:05.678Z"
  },
  "operator": {
    "key": "caseyjhand.com",
    "name": "caseyjhand.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 793,
    "first_check_in_window": "2026-11-21T17:19:00.603Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "2b52d5347eb10583a7f14d189412e5eb6901741f6df842648dd9924c16a12d43",
    "tools": 8,
    "resources": 5,
    "prompts": 0,
    "first_seen": "2026-11-23T21:46:02.454Z",
    "tool_names": [
      "water_list_parameters",
      "water_find_sites",
      "water_get_readings",
      "water_get_series",
      "water_get_site_data_catalog",
      "water_get_conditions",
      "water_dataframe_query",
      "water_dataframe_describe"
    ],
    "declared": {
      "tools": [
        {
          "name": "water_list_parameters",
          "title": "Water List Parameters",
          "description": "Look up USGS parameter codes — the 5-digit codes every other tool's parameterCd takes. With no query, lists a curated set of well-known codes with names, units, and thematic group, from a built-in table (no network call): 00060 = \"Discharge\" (ft³/s), 00065 = \"Gage height\" (ft), 00010 = \"Temperature, water\" (°C), 72019 = \"Depth to water level\" (ft), and others; filter it with group. For anything else — turbidity, nitrate, chlorophyll, suspended sediment, salinity — pass query to search the full USGS parameter-code catalog (~19,700 codes) by name and description, or pass a 5-digit code to look it up. Matches list curated codes first. limit (default 25, 1–4,000) and offset (default 0) window whichever list the call selects; total counts every match, and nextOffset names the next page while entries remain.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "group": {
                "enum": [
                  "streamflow",
                  "groundwater",
                  "temperature",
                  "meteorological",
                  "water-quality",
                  "all"
                ],
                "type": "string",
                "default": "all",
                "description": "Filter the curated list by thematic domain: \"streamflow\", \"groundwater\", \"temperature\", \"meteorological\", \"water-quality\", or \"all\" (default). Applies to the curated list only — leave it \"all\" when passing query."
              },
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 4000,
                "minimum": 1,
                "description": "Most entries to return, 1–4,000. Default 25. Applies to the query matches, or to the curated list when query is omitted; offset (default 0) picks where the window starts."
              },
              "query": {
                "type": "string",
                "maxLength": 200,
                "description": "Search the full USGS parameter-code catalog. Case-insensitive; every word must start a word in the parameter name or description (e.g. \"turbidity\", \"nitrate filtered\", \"dissolved oxygen\"). A bare 5-digit code (e.g. \"63680\") returns that code. Omit to list the curated codes."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of entries to skip before the window starts. Default 0. Pass the previous response's nextOffset, with the same query and limit (default 25, up to 4,000), for the next page."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "parameters",
                  "total",
                  "truncated"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "note": {
                "type": "string",
                "description": "Guidance when a query matched nothing, the window holds part of the matches (which entries, and the next offset while any remain), or offset is past the end (the valid range). Absent when the window holds every match."
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "query_with_group",
                          "upstream_error"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `query_with_group`: query was combined with a group other than \"all\". group filters the curated list only; the USGS catalog carries no matching grouping. `upstream_error`: The USGS parameter-code catalog could not be read — the request failed, timed out, or returned something other than a catalog page. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "query": {
                "type": "string",
                "description": "The catalog query searched, trimmed. Absent when listing the curated codes."
              },
              "total": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Number of entries that matched — every match, before limit/offset windowing."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when entries remain after this window, which nextOffset then continues from; false on the last page and for an offset past the end. The window is set by limit (default 25, 1–4,000) and offset (default 0)."
              },
              "nextOffset": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Offset of the next page, present while entries remain after this window (truncated is true) — pass it as offset with the same query and limit to continue. Absent on the last page. The window is set by limit (default 25, 1–4,000) and offset (default 0)."
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "name",
                    "unit",
                    "source"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "5-digit USGS parameter code (e.g. \"00060\")."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable parameter name (e.g. \"Discharge\")."
                    },
                    "unit": {
                      "type": "string",
                      "description": "Unit of measure (e.g. \"ft³/s\", \"ft\", \"°C\", \"FNU\")."
                    },
                    "group": {
                      "enum": [
                        "streamflow",
                        "groundwater",
                        "temperature",
                        "meteorological",
                        "water-quality"
                      ],
                      "type": "string",
                      "description": "Thematic domain of a curated entry. Absent on usgs-catalog entries."
                    },
                    "source": {
                      "enum": [
                        "curated",
                        "usgs-catalog"
                      ],
                      "type": "string",
                      "description": "\"curated\": one of the well-known codes this server lists by default. \"usgs-catalog\": a record from the full USGS parameter-code catalog."
                    },
                    "description": {
                      "type": "string",
                      "description": "USGS catalog description, naming the medium, fraction, and method (e.g. \"Turbidity, water, unfiltered, … formazin nephelometric units (FNU)\"). Present on usgs-catalog entries only."
                    }
                  },
                  "description": "A USGS parameter code entry.",
                  "additionalProperties": false
                },
                "description": "The window of matching entries, in a fixed order: without query, the curated codes; with query, matching curated codes first (each once, as its curated entry), then catalog records whose name holds every query word, then those matched through the description, each by code. The window is set by limit (default 25, 1–4,000) and offset (default 0)."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true
          }
        },
        {
          "name": "water_find_sites",
          "title": "Water Find Sites",
          "description": "Find USGS water monitoring sites by bounding box, state, county, or HUC watershed code, filtered by site type and parameter availability. Returns site numbers, names, coordinates, types, altitude, the UTC time each site last reported (lastObservedAt), and (in expanded mode) drainage area. Call this first — water_get_readings, water_get_series, and water_get_conditions all require a site number. Supply exactly one major filter — bbox, stateCd, countyCd, or huc; siteType, parameterCd, hasDataTypeCd, and observedWithin only narrow within it and cannot stand alone. parameterCd and hasDataTypeCd match sites that have ever reported, discontinued ones included; set observedWithin to keep only sites reporting now. Page through matches with limit/offset (default 25 per page, at most 500); truncated=true means matches remain after the returned window and upstreamTotal holds the full count. When the match set exceeds 500 and DataCanvas is enabled, the complete set also stages to a canvas (canvas_id/table_name) — inspect it with water_dataframe_describe, then retrieve it with water_dataframe_query.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "huc": {
                "type": "string",
                "pattern": "^(\\d{2}|\\d{8})$",
                "description": "Hydrologic Unit Code (HUC) scoping results to a watershed: a 2-digit region (e.g. \"02\" for the Mid-Atlantic) or an 8-digit subbasin (e.g. \"02070008\" for the Middle Potomac). Matches every site whose HUC starts with it. Major filter — supply exactly one of bbox, stateCd, countyCd, huc."
              },
              "bbox": {
                "type": "string",
                "pattern": "^-?\\d+(\\.\\d+)?(,-?\\d+(\\.\\d+)?){3}$",
                "description": "Bounding box as \"west,south,east,north\" in decimal degrees (e.g. \"-77.5,38.5,-76.5,39.5\" for the DC metro area). One of the four major filters — bbox, stateCd, countyCd, and huc are mutually exclusive with each other, and exactly one must be supplied."
              },
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 500,
                "minimum": 1,
                "description": "Maximum sites to return inline, 1–500. Default 25; pass up to 500 for a larger page."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Number of matching sites to skip before returning results. Page through the match set by advancing offset by limit. Default 0."
              },
              "stateCd": {
                "type": "string",
                "pattern": "^[A-Za-z]{2}$",
                "description": "2-letter US state or territory postal code, any case (e.g. \"VA\", \"wa\", \"PR\"). Returns all sites in the state for the given filters. Major filter — supply exactly one of bbox, stateCd, countyCd, huc."
              },
              "countyCd": {
                "type": "string",
                "pattern": "^\\d{5}(,\\d{5}){0,19}$",
                "description": "FIPS county code(s) as bare 5-digit numbers — state and county digits concatenated, no separator (e.g. \"51013\" for Arlington, VA). Comma-separate up to 20 (e.g. \"51059,51061\"). The 5 digits already encode the state, so the code stands alone. Major filter — supply exactly one of bbox, stateCd, countyCd, huc."
              },
              "siteType": {
                "type": "string",
                "description": "Site type filter. Common codes: \"ST\" (stream), \"GW\" (groundwater well), \"LK\" (lake/reservoir), \"SP\" (spring), \"AT\" (atmosphere), \"OC\" (ocean), \"ES\" (estuary). A major type includes its subtypes (\"ST\" also matches \"ST-CA\", \"ST-DCH\", \"ST-TS\"); a subtype matches only itself. Comma-separate multiple types (e.g. \"ST,GW\")."
              },
              "canvas_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{10}$",
                "description": "Canvas ID from a prior call to add this match set as a table on an existing canvas rather than creating a new one. Each distinct filter set gets its own table name, so re-running the identical query replaces its own table while a different query adds another alongside it. Applies only when the match set exceeds 500 sites and DataCanvas is enabled. Omit to start a fresh canvas."
              },
              "siteOutput": {
                "enum": [
                  "basic",
                  "expanded"
                ],
                "type": "string",
                "default": "basic",
                "description": "\"basic\" returns core identification fields. \"expanded\" adds drainage area, altitude, contributing area, and other metadata."
              },
              "parameterCd": {
                "type": "string",
                "pattern": "^\\d{5}(,\\d{5})*$",
                "description": "5-digit parameter code each returned site has ever reported (e.g. \"00060\" for discharge) — a site whose record ended years ago still matches; read lastObservedAt, or set observedWithin to keep only sites reporting now. Matched against the series hasDataTypeCd selects (continuous, daily, and field-measurement series when it is omitted), never discrete water-quality samples, so a site with only lab-analyzed samples for the code does not match. Use water_list_parameters to discover codes. Comma-separate multiple codes with no spaces (e.g. \"00060,00065\")."
              },
              "hasDataTypeCd": {
                "type": "string",
                "description": "Require sites that have ever reported data of this type: \"iv\" (instantaneous, continuous record; \"uv\" and \"rt\" are aliases), \"dv\" (daily values), \"gw\" (groundwater-level field measurements), \"pk\" (annual peaks). No other code has a source. Comma-separate multiple types. A discontinued site still matches — read lastObservedAt, or set observedWithin to keep only sites reporting now."
              },
              "observedWithin": {
                "type": "string",
                "pattern": "^P(?!$)(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$",
                "description": "ISO 8601 duration ending now, the form water_get_readings period takes (e.g. \"P7D\", \"PT6H\", \"P1Y\"). Keeps only sites whose lastObservedAt falls inside it — sites reporting now, not discontinued ones. Counts the series parameterCd and hasDataTypeCd select, or any continuous, daily, or field-measurement series when both are omitted. Daily values carry a date only, as does a field measurement or peak with no recorded time of day, and daily values publish a day or two late, so a window under \"P3D\" can drop a site that reports daily values only. A site last observed by a field measurement or peak is kept by its date, so its lastObservedAt can fall up to a day before the window starts."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "sites",
                  "total",
                  "truncated",
                  "upstreamTotal",
                  "filters"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "no_sites_found",
                          "missing_major_filter",
                          "conflicting_major_filters",
                          "invalid_request",
                          "upstream_error",
                          "upstream_timeout",
                          "canvas_not_found",
                          "canvas_capacity_exhausted"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `no_sites_found`: No sites match the given geographic and filter criteria. `missing_major_filter`: None of bbox, stateCd, countyCd, or huc was supplied. Every site search is scoped by exactly one of them; siteType, parameterCd, hasDataTypeCd, and observedWithin only narrow within that scope. `conflicting_major_filters`: More than one of bbox, stateCd, countyCd, and huc was supplied. The tool takes exactly one per call. `invalid_request`: A well-formed filter value has no translation — a stateCd that is no US state or territory, a malformed siteType, or a hasDataTypeCd with no source on the USGS Water Data APIs (refused before any request) — or the USGS Water Data API refused the query. `upstream_error`: The USGS Water Data API failed after retries or sent a response this server could not read. `upstream_timeout`: The USGS Water Data requests for this call ran past its 45-second budget. `canvas_not_found`: The supplied canvas_id names a canvas that never existed or has expired. Raised before any USGS request, so no upstream call is spent on it. `canvas_capacity_exhausted`: canvas_id was omitted and a fresh canvas was needed to stage the match set, but this tenant already holds the maximum number of active canvases. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "siteNumber",
                    "siteName",
                    "siteType",
                    "latitude",
                    "longitude",
                    "lastObservedAt"
                  ],
                  "properties": {
                    "hucCd": {
                      "type": "string",
                      "description": "Hydrologic Unit Code of the watershed containing this site; width varies (8-digit HUC8 and 12-digit HUC12, e.g. \"020700081005\", are both common — do not assume a fixed width), and absent when USGS assigns none. Do not pass it straight back to the huc filter (which takes 2 or 8 digits); HUCs nest, so its first 8 digits are the containing HUC8 that filter accepts."
                    },
                    "stateCd": {
                      "type": "string",
                      "description": "2-digit FIPS state code (e.g. \"51\" for Virginia). Populated only when siteOutput=\"expanded\"; absent in basic mode."
                    },
                    "altitude": {
                      "type": "number",
                      "description": "Altitude of the gage datum in feet above sea level (NAVD 88 or NGVD 29). Present in both basic and expanded modes when USGS records an altitude for the site."
                    },
                    "countyCd": {
                      "type": "string",
                      "description": "3-digit FIPS county code within the state (zero-padded, e.g. \"013\"). Populated only when siteOutput=\"expanded\"; absent in basic mode."
                    },
                    "latitude": {
                      "type": "number",
                      "description": "Decimal latitude in WGS 84."
                    },
                    "siteName": {
                      "type": "string",
                      "description": "Human-readable USGS site name (e.g. \"POTOMAC RIVER AT LITTLE FALLS, MD\")."
                    },
                    "siteType": {
                      "type": "string",
                      "description": "USGS site type code (e.g. \"ST\"=stream, \"GW\"=groundwater well, \"LK\"=lake/reservoir)."
                    },
                    "longitude": {
                      "type": "number",
                      "description": "Decimal longitude in WGS 84."
                    },
                    "siteNumber": {
                      "type": "string",
                      "description": "USGS site number (8–15 digits). Used by all other water tools."
                    },
                    "drainageArea": {
                      "type": "number",
                      "description": "Total drainage area in square miles. Populated only when siteOutput=\"expanded\"; absent in basic mode."
                    },
                    "lastObservedAt": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "UTC time (ISO 8601) of the newest observation among this site’s series that match parameterCd and hasDataTypeCd — any continuous, daily, or field-measurement series when both are omitted. A field measurement or peak counts from its recorded time of day; a daily value, or a field measurement or peak with no recorded time of day, carries a date only and counts from 00:00 UTC on it. A time years in the past marks a discontinued site. Null when the site has no matching series, or none with a recorded time."
                    },
                    "contributingArea": {
                      "type": "number",
                      "description": "Contributing drainage area in square miles (may differ from drainageArea for regulated basins). Populated only when siteOutput=\"expanded\"; absent in basic mode."
                    }
                  },
                  "description": "A USGS monitoring site with location, type, and when it last reported.",
                  "additionalProperties": false
                },
                "description": "The requested window of matching USGS monitoring sites — the slice starting at offset, at most limit long (limit defaults to 25, 500 max). upstreamTotal holds the full match count; canvas_id/table_name point to the staged full set when it exceeded 500 sites and DataCanvas is enabled."
              },
              "total": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Number of sites returned inline in this response — at most limit, and 0 when offset is at or past upstreamTotal."
              },
              "notice": {
                "type": "string",
                "description": "Advisory about the returned window: the staged canvas and how to read it, the filters to narrow by, the window actually returned, the valid offset range when the request landed past the end of the match set, or the fact that a supplied canvas_id went unused because nothing was staged."
              },
              "filters": {
                "type": "object",
                "required": [
                  "siteOutput"
                ],
                "properties": {
                  "huc": {
                    "type": "string",
                    "description": "HUC watershed filter applied, if any."
                  },
                  "bbox": {
                    "type": "string",
                    "description": "Bounding box filter applied, if any."
                  },
                  "stateCd": {
                    "type": "string",
                    "description": "State filter applied, if any."
                  },
                  "countyCd": {
                    "type": "string",
                    "description": "County FIPS filter applied, if any."
                  },
                  "siteType": {
                    "type": "string",
                    "description": "Site type filter applied, if any."
                  },
                  "siteOutput": {
                    "enum": [
                      "basic",
                      "expanded"
                    ],
                    "type": "string",
                    "description": "Site output mode used (basic or expanded)."
                  },
                  "parameterCd": {
                    "type": "string",
                    "description": "Parameter code filter applied, if any."
                  },
                  "hasDataTypeCd": {
                    "type": "string",
                    "description": "Data type filter applied, if any."
                  },
                  "observedWithin": {
                    "type": "string",
                    "description": "Recency window applied, if any."
                  }
                },
                "description": "Filters applied to this query.",
                "additionalProperties": false
              },
              "canvas_id": {
                "type": "string",
                "description": "Canvas ID for the DataCanvas holding the full, uncapped match set. Present only when the match set exceeded 500 sites and DataCanvas is enabled. Pass to water_dataframe_describe then water_dataframe_query to retrieve every match with SQL."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when matches remain after the returned window (offset + total < upstreamTotal) — false on the last page, and false for a window starting past the end of the match set, where the notice names the valid offset range instead. Advance offset by limit (default 25, at most 500) for the next page, narrow filters (add bbox, countyCd, huc, siteType, parameterCd, hasDataTypeCd, or observedWithin), or when canvas_id is present read the staged set with water_dataframe_describe then water_dataframe_query."
              },
              "table_name": {
                "type": "string",
                "description": "DuckDB table name in the canvas holding all matching sites. Present when canvas_id is present. Use as the FROM target in water_dataframe_query SQL."
              },
              "upstreamTotal": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Total number of sites matching the query upstream, before limit/offset windowing. Equals total when the whole match set fits in one window."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true
          }
        },
        {
          "name": "water_get_readings",
          "title": "Water Get Readings",
          "description": "Get the latest instantaneous (~15-min, real-time) values for USGS sites — per-site, per-parameter records with timestamp, value, unit, and provisional/approved qualifiers. Takes up to 500 site numbers, a full water_find_sites page, and reads the first 100 distinct ones; the rest return in deferredSites, in input order, to pass as sites in another call. Omitting parameterCd returns every parameter each site publishes. A site measuring one parameter with several sensors returns one series per sensor, each named by methodId (its time-series ID) and methodDescription; a sensor that reported nothing in the period still returns, with totalValues 0. At most 100 series return per call — every site that returned a series keeps at least one, and totalSeries reports how many the upstream returned; pass parameterCd or split the sites across calls to reach the rest. Each series returns only its 10 most recent records (totalValues reports the true count); truncated=true when either cap applied. Use water_get_series for a full date-range series. Sites read that return no series are listed in missingSites, not dropped silently. Find site numbers with water_find_sites; water_get_site_data_catalog lists the parameters and sensors a site measures and when each last reported.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "sites"
            ],
            "properties": {
              "sites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{8,15}$",
                  "description": "A USGS site number (8–15 digits, e.g. \"01646500\")."
                },
                "maxItems": 500,
                "minItems": 1,
                "description": "One or more USGS site numbers, at most 500. The first 100 distinct numbers are read, in input order; the rest return in deferredSites to pass as sites in another call. A repeated number is read once."
              },
              "period": {
                "type": "string",
                "default": "PT2H",
                "pattern": "^P(?!$)(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$",
                "description": "ISO 8601 duration for the lookback period (e.g. \"PT2H\" = last 2 hours, \"P1D\" = last 1 day, \"P7D\" = last 7 days). Default: \"PT2H\" (last 2 hours of readings). Widening it raises totalValues, but each series still returns only its 10 most recent records — use water_get_series to retrieve a full series. At most 1,100 days (e.g. \"P3Y\"); a longer period is refused upstream."
              },
              "parameterCd": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{5}$",
                  "description": "A 5-digit USGS parameter code (e.g. \"00060\" for discharge)."
                },
                "description": "Parameter codes to return. Omit to get every parameter each site publishes — one series per site, parameter, and method, so a large batch can exceed the 100-series cap. Use water_list_parameters to discover codes."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "readings",
                  "total",
                  "totalSeries",
                  "truncated",
                  "missingSites",
                  "deferredSites",
                  "query"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "no_data_for_parameter",
                          "invalid_request",
                          "upstream_error",
                          "upstream_timeout"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: No site read in this call returned a series and no site was deferred — each site either does not exist or has no instantaneous series of the requested parameter(s). A site whose sensor reported nothing in the period returns a series with totalValues 0 instead; when sites were deferred, the call succeeds with empty readings instead. `invalid_request`: The USGS Water Data API rejected the request. Input formats are validated before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: The USGS Water Data API returned a server error or a response it could not read, and retrying did not clear it. `upstream_timeout`: The upstream requests, retries included, ran past the 45-second budget for this call. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "query": {
                "type": "object",
                "required": [
                  "sites",
                  "period"
                ],
                "properties": {
                  "sites": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Site numbers read in this call: the first 100 distinct numbers of sites, in input order."
                  },
                  "period": {
                    "type": "string",
                    "description": "Lookback period applied (ISO 8601 duration)."
                  },
                  "parameterCd": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Parameter codes requested, if filtered."
                  }
                },
                "description": "Query parameters used for this request.",
                "additionalProperties": false
              },
              "total": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Number of site + parameter + method time series returned in readings (at most 100)."
              },
              "readings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "siteNumber",
                    "siteName",
                    "parameterCd",
                    "parameterName",
                    "unitCode",
                    "methodId",
                    "methodDescription",
                    "values",
                    "totalValues"
                  ],
                  "properties": {
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "dateTime",
                          "value",
                          "qualifiers"
                        ],
                        "properties": {
                          "value": {
                            "type": "string",
                            "description": "Measured value as a string. Empty string when the upstream reported no value for that interval — qualifiers then give the reason (e.g. \"Ssn\" seasonal, \"Dis\" discontinued, \"Dry\", \"Eqp\" equipment malfunction)."
                          },
                          "dateTime": {
                            "type": "string",
                            "description": "ISO 8601 date-time of this observation."
                          },
                          "qualifiers": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "description": "A USGS data qualifier code (e.g. \"P\" = provisional, \"A\" = approved, \"e\" = estimated). A qualifier with no code is the upstream word as written (e.g. \"OTHERAGENCY\")."
                            },
                            "description": "Data qualifier codes for this value: the approval code first, then one per qualifier."
                          }
                        },
                        "description": "A single instantaneous reading for this site and parameter.",
                        "additionalProperties": false
                      },
                      "description": "Time-ordered value records for this site and parameter, capped at the most recent 10. Compare with totalValues to see whether the period held more; use water_get_series for the full series."
                    },
                    "methodId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Time-series ID of this sensor series — the OGC time_series_id, the same value water_get_site_data_catalog lists as timeSeriesId. A site can measure one parameter with several sensors or at several locations — each is its own series and its own entry in readings. Null only when the upstream sent the series without an ID."
                    },
                    "siteName": {
                      "type": "string",
                      "description": "Human-readable USGS site name (e.g. \"POTOMAC RIVER AT LITTLE FALLS, MD\")."
                    },
                    "unitCode": {
                      "type": "string",
                      "description": "Unit of measure for the values in this series (e.g. \"ft3/s\", \"ft\", \"deg C\")."
                    },
                    "siteNumber": {
                      "type": "string",
                      "description": "USGS site number (8–15 digits, e.g. \"01646500\")."
                    },
                    "parameterCd": {
                      "type": "string",
                      "description": "5-digit parameter code (e.g. \"00060\" for discharge)."
                    },
                    "totalValues": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "description": "Number of value records the upstream returned for this sensor over the requested period, before the 10-record cap. Equals values.length when nothing was capped. 0 when the sensor reported nothing in the period — the endDate water_get_site_data_catalog lists for its timeSeriesId gives its last report."
                    },
                    "parameterName": {
                      "type": "string",
                      "description": "Parameter description from the USGS parameter-code catalog, units included (e.g. \"Discharge, cubic feet per second\")."
                    },
                    "methodDescription": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Description of the sensor, built from the series metadata as \"<sublocation>, [<web description>]\" (e.g. \"From multiparameter sonde, [Discontinued]\"), or either part alone when the other is blank (e.g. \"From multiparameter sonde\", \"[Radar]\"). Null when the metadata leaves both blank, as it does for the default series at most single-sensor sites."
                    }
                  },
                  "description": "Time series result for one site + parameter + method combination.",
                  "additionalProperties": false
                },
                "description": "Time series per site + parameter + method combination, ordered by site number, parameter code, then the sensor's first observation. At most 100: past that, series are kept round-robin across sites — every site's first series, then every site's second — with a site's series carrying values ahead of its empty ones, a series whose every record is no data counting as empty."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when either cap applied. The series cap: totalSeries > total — pass parameterCd or split the sites across calls. The 10-record cap: some readings[].totalValues > values.length — use water_get_series for the full series. Sites not read do not set it; they return in deferredSites."
              },
              "totalSeries": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Number of site + parameter + method time series before the 100-series cap. Greater than total exactly when the cap dropped series; narrow with parameterCd or split the sites across calls to get the rest."
              },
              "missingSites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "A USGS site number read in this call that returned no series."
                },
                "description": "Site numbers read in this call that returned no series, each listed once — the site does not exist, or has no instantaneous series of the requested parameter(s). A site whose sensor reported nothing in the period is not listed here: it returns a series with totalValues 0. A site not read is not listed here either: it returns in deferredSites. Empty when every site read returned a series. Check a listed site with water_get_site_data_catalog: not_found means no such site, an empty series list means it never measured the parameter, and each row’s endDate gives its last report."
              },
              "deferredSites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "A USGS site number not read in this call."
                },
                "description": "Distinct site numbers past the first 100 distinct in sites, in input order, each listed once — not read in this call. Pass them as sites in another call to read them. Empty when every site was read."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true
          }
        },
        {
          "name": "water_get_series",
          "title": "Water Get Series",
          "description": "Get a time series for one USGS site and parameter over a date range, as time-ordered value records: daily values, instantaneous (~15-minute) readings, field measurements (values measured by hand on a site visit, such as a well’s groundwater level or a discharge measurement), or annual peaks. A site can hold several series for one query — one per daily statistic (mean, maximum, minimum), one per sensor (method), and one per field reading type; this returns one, reporting its statCd and methodId (its time-series ID), and lists the rest in otherSeries so any can be re-requested with the statCd and methodId inputs (methodId alone for a field or peak series). By default it returns the daily mean when one carries values, and the method with the most records. Large sets (>500 records) return the most recent records inline with truncated=true — the last 500 without DataCanvas, and with DataCanvas enabled the complete series also spills to a canvas (canvas_id/table_name): inspect the staged table with water_dataframe_describe, then read the full series with water_dataframe_query. Use water_find_sites and water_list_parameters to resolve inputs; water_get_site_data_catalog lists a site’s series with their record bounds (beginDate/endDate), and a row’s timeSeriesId works as methodId.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "site",
              "parameterCd",
              "startDate",
              "endDate"
            ],
            "properties": {
              "site": {
                "type": "string",
                "pattern": "^\\d{8,15}$",
                "description": "USGS site number (8–15 digits, e.g. \"01646500\" for Potomac River at Little Falls). Use water_find_sites to discover valid site numbers."
              },
              "statCd": {
                "type": "string",
                "description": "Daily statistic to return, as a 5-digit USGS statistic code: \"00003\" mean, \"00001\" maximum, \"00002\" minimum. Omit for the mean when one carries values, otherwise the lowest-numbered statistic that has values; the response names the one returned and lists the others in otherSeries. Daily series only — instantaneous values carry just \"00000\" (\"00011\", the statistic water_get_site_data_catalog lists on instantaneous rows, reads the same), and field and peak series carry no statistic, so any statCd fails for them."
              },
              "endDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "End date in YYYY-MM-DD format (e.g. \"2024-12-31\")."
              },
              "methodId": {
                "type": "string",
                "description": "Time-series ID of the series to return (the OGC time_series_id, 32 hexadecimal characters; for a field series, its field-measurement series ID, a hyphenated UUID) — the methodId or an otherSeries[].methodId from a prior response for the same site, parameter, and seriesType, or a timeSeriesId from water_get_site_data_catalog whose seriesType matches this call. Omit for the method with the most records, ties going to the site’s default sensor (methodDescription null) over a labeled one such as an auxiliary gage, then to the series that began first. Each daily statistic, the instantaneous series of one sensor, and each field reading type (such as staff-gage readings beside the mean gage height of each discharge measurement) carry different IDs. A numeric NWIS method ID matches no series."
              },
              "canvas_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{10}$",
                "description": "Canvas ID from a prior call to add this series as a table on an existing canvas rather than creating a new one. Each distinct site, parameter code, series type, date range, and selected statistic and method gets its own table name, so re-running the identical query replaces its own table while a different query adds another alongside it. Applies only when the series spills to a canvas. Omit to start a fresh canvas."
              },
              "startDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Start date in YYYY-MM-DD format (e.g. \"2024-01-01\")."
              },
              "seriesType": {
                "enum": [
                  "daily",
                  "instantaneous",
                  "field",
                  "peak"
                ],
                "type": "string",
                "default": "daily",
                "description": "\"daily\" returns one value per day (typically mean/max/min). \"instantaneous\" returns ~15-minute readings. \"field\" returns field measurements: values measured by hand on a site visit, such as the groundwater level of a well with no continuous sensor or a discharge measurement at a stream gage. \"peak\" returns annual peaks, one per water year. Default: \"daily\". Use \"instantaneous\" for high-resolution analysis."
              },
              "parameterCd": {
                "type": "string",
                "pattern": "^\\d{5}$",
                "description": "A single 5-digit USGS parameter code (e.g. \"00060\" for discharge, \"00065\" for gage height). One code per call — this tool returns one series. Use water_list_parameters to discover available codes."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "siteNumber",
                  "siteName",
                  "parameterCd",
                  "parameterName",
                  "unitCode",
                  "seriesType",
                  "statCd",
                  "statName",
                  "methodId",
                  "methodDescription",
                  "values",
                  "totalRecords",
                  "truncated",
                  "otherSeries",
                  "query"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "no_data_for_range",
                          "invalid_date_range",
                          "invalid_stat_cd",
                          "stat_cd_for_instantaneous",
                          "stat_cd_for_field_or_peak",
                          "method_not_found",
                          "invalid_request",
                          "upstream_error",
                          "upstream_timeout",
                          "canvas_not_found",
                          "canvas_capacity_exhausted"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `no_data_for_range`: The site and parameter combination has no data in the requested date range. `invalid_date_range`: endDate is before startDate, or a date passes the YYYY-MM-DD shape check but is not a real calendar date. `invalid_stat_cd`: statCd is not a 5-digit USGS statistic code. Raised before any upstream request. `stat_cd_for_instantaneous`: statCd names a daily statistic but seriesType is \"instantaneous\", whose values carry only statistic \"00000\". Raised before any upstream request. `stat_cd_for_field_or_peak`: statCd is set but seriesType is \"field\" or \"peak\", whose series carry no statistic. Raised before any upstream request. `method_not_found`: No series returned for this query carries the requested methodId (within the requested statCd, when one is given). A numeric NWIS method ID always lands here: methodId is the 32-character OGC time-series ID, or a hyphenated UUID for a field series. `invalid_request`: The USGS Water Data API rejected the request. Input formats are validated before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: The USGS Water Data API returned a server error or a response it could not read, and retrying did not clear it. `upstream_timeout`: The upstream requests, retries included, ran past the 45-second budget for this call. `canvas_not_found`: The supplied canvas_id names a canvas that never existed or has expired. Raised before any upstream request, so no upstream call is spent on it. `canvas_capacity_exhausted`: canvas_id was omitted and a fresh canvas was needed to stage the series, but this tenant already holds the maximum number of active canvases. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "query": {
                "type": "object",
                "required": [
                  "site",
                  "parameterCd",
                  "startDate",
                  "endDate",
                  "seriesType"
                ],
                "properties": {
                  "site": {
                    "type": "string",
                    "description": "Site number queried."
                  },
                  "statCd": {
                    "type": "string",
                    "description": "Statistic code requested, if any."
                  },
                  "endDate": {
                    "type": "string",
                    "description": "End date applied (YYYY-MM-DD)."
                  },
                  "methodId": {
                    "type": "string",
                    "description": "Method ID requested, if any."
                  },
                  "startDate": {
                    "type": "string",
                    "description": "Start date applied (YYYY-MM-DD)."
                  },
                  "seriesType": {
                    "enum": [
                      "daily",
                      "instantaneous",
                      "field",
                      "peak"
                    ],
                    "type": "string",
                    "description": "Series type used."
                  },
                  "parameterCd": {
                    "type": "string",
                    "description": "Parameter code queried."
                  }
                },
                "description": "Query parameters used for this request.",
                "additionalProperties": false
              },
              "notice": {
                "type": "string",
                "description": "Advisory about this result: the staged canvas table and how to read it, the advice to narrow the date range when the series was truncated with no canvas available, or the fact that a supplied canvas_id went unused because nothing was staged."
              },
              "statCd": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "USGS statistic code of the returned series: \"00003\" daily mean, \"00001\" daily maximum, \"00002\" daily minimum, \"00000\" for instantaneous values. Null for field and peak series, which carry no statistic."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "dateTime",
                    "value",
                    "qualifiers"
                  ],
                  "properties": {
                    "value": {
                      "type": "string",
                      "description": "Measured value as a string. Empty string when the upstream reported no value for that interval — qualifiers then give the reason (e.g. \"Ssn\" seasonal, \"Dis\" discontinued, \"Dry\", \"Eqp\" equipment malfunction). A staged canvas table holds NULL for these."
                    },
                    "dateTime": {
                      "type": "string",
                      "description": "ISO 8601 date or date-time of this observation. A field or peak record carries the measurement’s UTC instant on the site’s clock (e.g. \"2026-08-05T09:15:00.000-04:00\") when the upstream records a time of day, and otherwise the bare date the upstream records (e.g. \"2000-09-08\"), a UTC date that can fall a day after the site-local date of an evening measurement."
                    },
                    "peakSince": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Peak records only: the year since which this is the highest peak, when the upstream states one (e.g. 1889); null otherwise."
                    },
                    "waterYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Peak records only: water year of the peak (October through September, named for the year it ends in); null when unstated."
                    },
                    "qualifiers": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "A USGS data qualifier code (e.g. \"P\" = provisional, \"A\" = approved, \"e\" = estimated). A qualifier with no code is the upstream word as written (e.g. \"OTHERAGENCY\", \"Static\", \"MONTHUNKNOWN\")."
                      },
                      "description": "Data qualifier codes for this value: the approval code first, then one per qualifier. Peak records carry no approval code."
                    },
                    "unknownDatePart": {
                      "anyOf": [
                        {
                          "enum": [
                            "month",
                            "day"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Field and peak records only: the coarsest part of the date the upstream does not know, which dateTime fills with 01 — \"month\" when only the year is known (e.g. \"1958-01-01\"), \"day\" when the year and month are. Null when the whole date is known."
                    },
                    "controlCondition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Field records only: stream-channel control condition at the visit (e.g. \"Clear\", \"Debris - Light\"); null when unrecorded, as at wells."
                    },
                    "measurementRated": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Field records only: rating of the discharge measurement the value comes from, for its discharge or mean gage height (e.g. \"Good\", \"Fair\", \"Poor\"); null otherwise."
                    },
                    "observingProcedure": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Field records only: how the value was measured (e.g. \"GW level, calib electric tape\"); null when unstated."
                    }
                  },
                  "description": "A single value record with date-time, value, and qualifiers.",
                  "additionalProperties": false
                },
                "description": "Time-ordered value records, oldest first within the slice. Holds every record when truncated is false; when truncated, the most recent records only — the last 500 without DataCanvas, or the last N that fit the inline preview budget when the full series is staged on a canvas."
              },
              "methodId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Time-series ID of the series returned — the OGC time_series_id, or for a field series its field-measurement series ID (a hyphenated UUID); the same value water_get_site_data_catalog lists as timeSeriesId. Pass it back as the methodId input to request this series again. Null only when the upstream sent the series without an ID."
              },
              "siteName": {
                "type": "string",
                "description": "Human-readable USGS site name."
              },
              "statName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Statistic name for statCd (e.g. \"Mean\", \"Maximum\"). Null when the upstream gives none, as for instantaneous values, and for field and peak series."
              },
              "unitCode": {
                "type": "string",
                "description": "Unit of measure for all values in this series (e.g. \"ft3/s\", \"ft\", \"deg C\")."
              },
              "canvas_id": {
                "type": "string",
                "description": "Canvas ID for the DataCanvas holding the full time series. Present only when truncated=true and DataCanvas is enabled. Pass to water_dataframe_describe then water_dataframe_query."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when the result exceeds 500 records and only the most recent were returned inline. When canvas_id is present, inspect the staged table with water_dataframe_describe then read the full series with water_dataframe_query; otherwise narrow the date range."
              },
              "seriesType": {
                "enum": [
                  "daily",
                  "instantaneous",
                  "field",
                  "peak"
                ],
                "type": "string",
                "description": "\"daily\" = one value per day; \"instantaneous\" = ~15-minute readings; \"field\" = field measurements; \"peak\" = annual peaks."
              },
              "siteNumber": {
                "type": "string",
                "description": "USGS site number (8–15 digits, e.g. \"01646500\")."
              },
              "table_name": {
                "type": "string",
                "description": "DuckDB table name in the canvas holding all records. Present when canvas_id is present. Use as the FROM target in water_dataframe_query SQL. Its value column is DOUBLE (NULL for a no-data record) and date_time keeps the site-local text; every table but a daily one ends with time_utc, the UTC instant as fixed-width text ending in Z that sorts chronologically (NULL on a field or peak record with no recorded time of day) — compare it with now() as CAST(time_utc AS TIMESTAMPTZ)."
              },
              "otherSeries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "statCd",
                    "statName",
                    "methodId",
                    "methodDescription",
                    "recordCount"
                  ],
                  "properties": {
                    "statCd": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "USGS statistic code of this series (e.g. \"00001\"); null for a field or peak series."
                    },
                    "methodId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Time-series ID of this series — pass as the methodId input."
                    },
                    "statName": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Statistic name for statCd (e.g. \"Maximum\"); null when the upstream gives none."
                    },
                    "recordCount": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "description": "Number of value records this series holds over the requested range."
                    },
                    "methodDescription": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Description of the sensor; null when blank."
                    }
                  },
                  "description": "One series returned for this query that was not selected.",
                  "additionalProperties": false
                },
                "description": "Every other statistic × method series returned for this query, a series with no records in the range included (recordCount 0), ordered by statistic code, then first observation — re-request one with its statCd and methodId (methodId alone for a field or peak series). Empty when the query produced a single series."
              },
              "parameterCd": {
                "type": "string",
                "description": "5-digit USGS parameter code (e.g. \"00060\" for discharge)."
              },
              "totalRecords": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Total number of records in the upstream result set (before any truncation)."
              },
              "parameterName": {
                "type": "string",
                "description": "Parameter description from the USGS parameter-code catalog, units included (e.g. \"Discharge, cubic feet per second\")."
              },
              "methodDescription": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Description of the sensor, built from the series metadata as \"<sublocation>, [<web description>]\" (e.g. \"From multiparameter sonde, [Discontinued]\"), or either part alone when the other is blank (e.g. \"From multiparameter sonde\", \"[Radar]\"). Null when the metadata leaves both blank, as it does for the default series at most single-sensor sites."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true
          }
        },
        {
          "name": "water_get_site_data_catalog",
          "title": "Water Get Site Data Catalog",
          "description": "Discover a USGS site’s parameters, sensors, statistics, and UTC record bounds before calling water_get_series. Find site numbers with water_find_sites. Each row is a distinct series; metadata bounds may contain gaps and lag observations. For water_get_series, take YYYY-MM-DD from beginDate/endDate, pass the row’s seriesType, pass statCd only for daily rows, and pass a row’s timeSeriesId as methodId to request that exact series (water_get_readings and water_get_series report the same ID as methodId). Field-measurement series (hand-measured values, such as the levels of a well with no continuous sensor) list as seriesType \"field\" and annual-peak series as \"peak\". Rows with null seriesType are other computations, such as a water-year mean or maximum, and cannot be requested with water_get_series. Follow nextCursor with the same filters and limit until null.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "site"
            ],
            "properties": {
              "site": {
                "type": "string",
                "pattern": "^\\d{8,15}$",
                "description": "USGS site number (8–15 digits), from water_find_sites; e.g. \"01646500\"."
              },
              "limit": {
                "type": "integer",
                "default": 100,
                "maximum": 1000,
                "minimum": 1,
                "description": "Maximum metadata rows per page (1–1000; default 100). Keep unchanged when using cursor."
              },
              "cursor": {
                "type": "string",
                "maxLength": 10000,
                "description": "Opaque nextCursor from the previous page; keep site, parameterCd, seriesType, and limit unchanged."
              },
              "seriesType": {
                "enum": [
                  "daily",
                  "instantaneous",
                  "field",
                  "peak"
                ],
                "type": "string",
                "description": "Limit to one series type: Daily computations, Points/Instantaneous computations, field-measurement series, or annual-peak series (computation Max At Event Time). Omit to include every series."
              },
              "parameterCd": {
                "type": "string",
                "pattern": "^\\d{5}$",
                "description": "Optional 5-digit parameter code from water_list_parameters, e.g. \"00060\"."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "siteNumber",
                  "siteName",
                  "series",
                  "nextCursor"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "not_found",
                          "invalid_cursor",
                          "upstream_timeout",
                          "upstream_error"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `not_found`: The monitoring location does not exist. `invalid_cursor`: The cursor is malformed or belongs to different filters or page size. `upstream_timeout`: The upstream request or shared 45-second deadline expired. `upstream_error`: The OGC API failed or returned malformed location or metadata. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "timeSeriesId",
                    "parameterCd",
                    "parameterName",
                    "unit",
                    "statCd",
                    "beginDate",
                    "endDate",
                    "sublocation",
                    "webDescription",
                    "computationPeriod",
                    "computation",
                    "readingType",
                    "seriesType"
                  ],
                  "properties": {
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Upstream unit of measure, or null; always null on a field row, whose metadata states none."
                    },
                    "statCd": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Statistic identifier, or null; pass only for daily water_get_series calls."
                    },
                    "endDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Full UTC latest-observation bound, or null; take YYYY-MM-DD for endDate. May lag observations."
                    },
                    "beginDate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Full UTC first-observation bound, or null; take YYYY-MM-DD for startDate."
                    },
                    "seriesType": {
                      "anyOf": [
                        {
                          "enum": [
                            "daily",
                            "instantaneous",
                            "field",
                            "peak"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "daily for Daily; instantaneous for Points with Instantaneous; field for a field-measurement series; peak for the Max At Event Time computation (annual peaks); null otherwise. Pass it as the water_get_series seriesType."
                    },
                    "computation": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Raw upstream computation (e.g. Mean, Instantaneous, Max At Event Time), or null; null on a field row."
                    },
                    "parameterCd": {
                      "type": "string",
                      "description": "USGS parameter code for this series."
                    },
                    "readingType": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Field rows only: the upstream reading type, one field series per type (e.g. ReferencePrimary for staff-gage readings, MeanGageHeight for the mean gage height of each discharge measurement, Discharge); null on every other row."
                    },
                    "sublocation": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Upstream sensor/sublocation description, or null."
                    },
                    "timeSeriesId": {
                      "type": "string",
                      "description": "Distinct series identifier — the OGC time-series ID (32 hexadecimal characters), or on a field row its field-measurement series ID (a hyphenated UUID); pass it as the water_get_series methodId, with this row’s seriesType."
                    },
                    "parameterName": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Upstream parameter name, or null."
                    },
                    "webDescription": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Upstream series description, or null."
                    },
                    "computationPeriod": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Raw upstream computation period (e.g. Daily, Points, Water Year), or null; null on a field row."
                    }
                  },
                  "description": "One distinct sensor/statistic metadata record.",
                  "additionalProperties": false
                },
                "description": "One metadata page; distinct sensors/statistics remain separate. Empty when a known site has no matching rows."
              },
              "siteName": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Upstream site name, or null when unavailable."
              },
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Continuation for the same filters and limit, or null when no next page exists."
              },
              "siteNumber": {
                "type": "string",
                "description": "USGS site number, preserving leading zeros."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true
          }
        },
        {
          "name": "water_get_conditions",
          "title": "Water Get Conditions",
          "description": "Rank the current reading at up to 100 USGS sites per call against each site's full period-of-record daily-mean percentiles for the same calendar day — a \"how unusual is this\" percentileClass (record-high to record-low) per site, not a flood-stage or drought determination (this tool fetches no authoritative thresholds). Pass up to 500 site numbers and one parameterCd: the first 100 distinct sites are read, each with a reading in the last two hours returning one conditions row; the others read are listed in missingSites, and sites past the first 100 return in deferredSites, in input order, to resubmit. Rankings follow the water level: for a depth-to-water code (72019) a shallower depth ranks higher. The reading is instantaneous but the percentiles are daily-mean, so the ranking is approximate (see historicalContext.comparisonBasis). When a site's record is too short to rank, its row carries historicalContext=null instead of an error, and a failed statistics request marks only the rows it covered unavailable. A reading USGS reports as no data (a seasonal, discontinued, dry, or malfunctioning gage) returns an empty currentValue with the qualifiers naming why, and is not ranked. When a site measures the parameter with several sensors (methods), one reading is used and named by methodId/methodDescription — from a sensor the statistics hold a daily-mean series for when one is, otherwise the most recent across them; water_get_readings lists every method. Use water_find_sites and water_list_parameters to resolve inputs.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "sites",
              "parameterCd"
            ],
            "properties": {
              "sites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d{8,15}$",
                  "description": "A USGS site number (8–15 digits, e.g. \"01646500\")."
                },
                "maxItems": 500,
                "minItems": 1,
                "description": "USGS site numbers to rank (e.g. [\"01646500\"] for Potomac River at Little Falls), up to 500 — a page of water_find_sites results passes through as is. The first 100 distinct numbers are read; a repeated number counts once, and the rest return in deferredSites. Use water_find_sites to discover valid site numbers."
              },
              "parameterCd": {
                "type": "string",
                "pattern": "^\\d{5}$",
                "description": "5-digit USGS parameter code ranked at every site (e.g. \"00060\" for discharge, \"00065\" for gage height). Use water_list_parameters to discover codes."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "conditions",
                  "missingSites",
                  "deferredSites"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "no_data_for_parameter",
                          "invalid_request",
                          "upstream_error",
                          "upstream_timeout"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: No site read in this call has a reading of the parameter in the last two hours and no site was deferred: each does not exist, never measured the parameter, or reported nothing in that window. With sites deferred the call succeeds instead, listing the sites read in missingSites. `invalid_request`: The USGS Water Data API rejected the readings request, one for every site read. Inputs are validated before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: The USGS Water Data API answered the readings request with a 5xx error or a response it could not read, and retrying did not clear it. A statistics failure does not raise this — the rows it covered report historicalContextStatus \"unavailable\". `upstream_timeout`: The readings did not arrive within the budget this call shares across its requests. A statistics timeout marks the rows it covered historicalContextStatus \"unavailable\". Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "conditions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "siteNumber",
                    "siteName",
                    "parameterCd",
                    "parameterName",
                    "unitCode",
                    "methodId",
                    "methodDescription",
                    "currentValue",
                    "currentDateTime",
                    "qualifiers",
                    "historicalContext",
                    "historicalContextStatus"
                  ],
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "Informational note explaining why historicalContext is null or incomplete, that USGS reported no value for the current reading, or which daily-mean series the percentiles came from when methodMatched is false. Absent when the reading is measured and ranked against its own sensor's daily-mean series."
                    },
                    "methodId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Time-series ID of the instantaneous sensor series the current reading comes from, as water_get_readings returns it. When the site reports the parameter from several, a series with a measured latest reading is preferred, then one the statistics hold a daily-mean series for (so reading and percentiles come from one sensor), then the most recent, then the site's default sensor (methodDescription null) over a labeled one such as an auxiliary gage. Null only when the series carries no ID."
                    },
                    "siteName": {
                      "type": "string",
                      "description": "Human-readable USGS site name."
                    },
                    "unitCode": {
                      "type": "string",
                      "description": "Unit of measure for currentValue and the historical percentiles (e.g. \"ft3/s\", \"ft\")."
                    },
                    "qualifiers": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "A USGS data qualifier for the reading (e.g. \"P\" = provisional)."
                      },
                      "description": "Data qualifiers for the current reading. When currentValue is empty they name why USGS has no value (e.g. seasonal, discontinued, dry, equipment malfunction)."
                    },
                    "siteNumber": {
                      "type": "string",
                      "description": "USGS site number (8–15 digits, e.g. \"01646500\")."
                    },
                    "parameterCd": {
                      "type": "string",
                      "description": "5-digit USGS parameter code that was queried (e.g. \"00060\")."
                    },
                    "currentValue": {
                      "type": "string",
                      "description": "Most recent observed value as a string — for a depth-to-water code, the depth as measured. Empty string when USGS reported no value for the reading — qualifiers then give the reason, and historicalContext does not rank it. A method with a measured latest reading is preferred over one whose latest reading has no value."
                    },
                    "parameterName": {
                      "type": "string",
                      "description": "Parameter description from the USGS parameter-code catalog, with units (e.g. \"Discharge, cubic feet per second\")."
                    },
                    "currentDateTime": {
                      "type": "string",
                      "description": "ISO 8601 date-time of the most recent observation."
                    },
                    "historicalContext": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "percentileClass",
                            "percentileLabel",
                            "p05",
                            "p10",
                            "p25",
                            "p50",
                            "p75",
                            "p95",
                            "periodOfRecord",
                            "comparisonBasis",
                            "statSeriesId",
                            "statSeriesDescription",
                            "methodMatched"
                          ],
                          "properties": {
                            "p05": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "5th percentile of water level in unitCode for this calendar month+day, based on the period of record — for a depth-below-surface code, the deepest of these depths. Null if that threshold is unpublished."
                            },
                            "p10": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "10th percentile value in unitCode for this calendar month+day. Null if unavailable."
                            },
                            "p25": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "25th percentile (lower quartile) in unitCode. Null if unavailable."
                            },
                            "p50": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median (50th percentile) in unitCode for this calendar month+day. Null if unavailable."
                            },
                            "p75": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "75th percentile (upper quartile) in unitCode. Null if unavailable."
                            },
                            "p95": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "95th percentile of water level in unitCode for this calendar month+day — for a depth-below-surface code, the shallowest of these depths. Null if unpublished."
                            },
                            "statSeriesId": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Time-series ID of the daily-mean series the percentiles were computed from. When methodMatched is true, that series is computed from the instantaneous series named by methodId."
                            },
                            "methodMatched": {
                              "type": "boolean",
                              "description": "True when the percentiles come from the daily-mean series computed from the reported sensor's own series (methodId), linked by time-series ID. False when that sensor has no daily-mean series in the statistics and the site's only series with percentiles for the day was used instead (note says so) — the percentiles may then come from a different sensor or location than the reading."
                            },
                            "periodOfRecord": {
                              "type": "string",
                              "description": "First and last water year of approved daily means for this calendar day, the years the percentiles are computed from (e.g. \"1931–2026\")."
                            },
                            "comparisonBasis": {
                              "type": "string",
                              "description": "Fixed disclosure that percentileClass ranks an instantaneous reading against approved daily-mean percentiles — a cross-granularity approximation, not a flood-stage or drought determination. For a depth-below-surface code it also says the depth is ranked as a water level. Present whenever historicalContext is non-null."
                            },
                            "percentileClass": {
                              "enum": [
                                "record-high",
                                "above-normal",
                                "normal",
                                "below-normal",
                                "low",
                                "record-low",
                                "unknown"
                              ],
                              "type": "string",
                              "description": "Classification of the water level relative to the full period-of-record: record-high (≥ p95), above-normal (p75–p95), normal (p25–p75), below-normal (p10–p25), low (p05–p10), record-low (< p05). For a depth-below-surface code (72019, 30210, 99019, 72276) a shallower depth is a higher water level, so a depth at or shallower than p95 is record-high and one deeper than p05 is record-low. Decided by the thresholds published: with p95 blank a reading at or past p75 is above-normal, and with p10 or p05 blank a reading short of p25 or p10 is below-normal or low. normal requires both p25 and p75; a value the published thresholds cannot place is unknown, as is a reading USGS reported as no data (currentValue empty). See percentileLabel for the threshold in plain language."
                            },
                            "percentileLabel": {
                              "type": "string",
                              "description": "Plain-language threshold for percentileClass (e.g. \"25th–75th percentile\"). When the class was decided without an unpublished threshold, the label names it (e.g. \"≥ 75th percentile; 95th not published\") — the value may lie past it. An unknown class names the published thresholds either side and the blank ones between (e.g. \"25th–95th percentile; 75th not published\"), or, for a reading with no value, says so and names its qualifiers. The record-high and record-low classes mark percentile-of-record extremes (≥ p95 / < p05), not verified all-time records — this field says so where the class name does not. For a depth-below-surface code the label also says the depth is ranked as a water level."
                            },
                            "statSeriesDescription": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Description of that daily-mean series, composed as methodDescription is (e.g. \"From multiparameter sonde\", \"[BASE GAGE]\"). Null when blank."
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Historical percentile context for the observation's calendar day. Non-null only when historicalContextStatus is \"available\"; see that field for why it is otherwise absent."
                    },
                    "methodDescription": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Description of that sensor series: its sublocation, with its web description in brackets (e.g. \"From multiparameter sonde\", \"AUXILIARY GAGE\"). Null when both are blank, as for the default series at most single-sensor sites."
                    },
                    "historicalContextStatus": {
                      "enum": [
                        "available",
                        "no_matching_day",
                        "no_matching_method",
                        "no_record",
                        "unavailable"
                      ],
                      "type": "string",
                      "description": "Why historicalContext is or is not populated. 'available': percentiles for the observation's calendar day are present. 'no_matching_day': the reported sensor's daily-mean series has an approved record but no percentiles for that calendar day. 'no_matching_method': several daily-mean series have percentiles for the day and none is computed from the reported sensor's series, so no series is picked to rank against (note lists them). 'no_record': no daily-mean percentiles exist for this site, parameter, and calendar day — a new site, a record too short, or a series with only daily maximum or minimum statistics. 'unavailable': a statistics or series-metadata request behind this row failed (note says why) — an upstream failure, not a statement about the site's record; call again later. Other rows of the call are unaffected."
                    }
                  },
                  "description": "One read site's current reading and its ranking.",
                  "additionalProperties": false
                },
                "description": "One row per read site with a reading of the parameter in the last two hours, in input order. Empty only when sites were deferred and none of the sites read had a reading."
              },
              "missingSites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "A read USGS site number with no reading in the last two hours."
                },
                "description": "Site numbers read in this call that returned no reading of the parameter in the last two hours, in input order — the site does not exist, never measured the parameter, or reported nothing in that window. Never lists a deferred site. Check one with water_get_site_data_catalog: not_found means no such site, an empty series list means the parameter was never measured there, and endDate gives the last report; for a gage silent only in the last two hours, water_get_readings with a longer period returns its latest value."
              },
              "deferredSites": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "A USGS site number not read in this call."
                },
                "description": "Distinct site numbers past the first 100, in input order, not read in this call — resubmit them as sites in another call. Empty when every site was read."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true
          }
        },
        {
          "name": "water_dataframe_query",
          "title": "Water Dataframe Query",
          "description": "Run a read-only SQL SELECT against water data tables staged on a DataCanvas by water_get_series or water_find_sites. Workflow: run water_get_series or water_find_sites (get canvas_id + table_name) → water_dataframe_describe (confirm the table and its columns) → water_dataframe_query (SQL analysis), then optionally water_dataframe_drop (when this server enables it) to remove a table you are done with. Only SELECT statements are permitted. Returns at most 5,000 rows, or this server instance's canvas row limit when that is lower; a query matching more is capped and the response sets truncated=true, with row_count equal to the cap applied — scope with WHERE/LIMIT, and use SELECT COUNT(*) or water_dataframe_describe to learn the true match count. Requires DataCanvas to be enabled on this server instance. Returns an error if DataCanvas is not available.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "canvas_id",
              "sql"
            ],
            "properties": {
              "sql": {
                "type": "string",
                "description": "Read-only SELECT statement. Reference the table by the table_name from water_get_series or water_find_sites; columns vary by source table, so run water_dataframe_describe first for the exact schema. Example on an instantaneous series table: SELECT time_utc, value FROM water_series_01646500_00060_iv_20261101_20261108 ORDER BY time_utc DESC LIMIT 10. Write a window relative to now as WHERE CAST(time_utc AS TIMESTAMPTZ) > now() - INTERVAL 6 HOUR."
              },
              "canvas_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{10}$",
                "description": "Canvas ID returned by water_get_series or water_find_sites. Identifies the canvas holding the data."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "rows",
                  "row_count",
                  "truncated"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "description": "A result row whose keys are the selected column names and values are the corresponding cell values.",
                  "additionalProperties": {}
                },
                "description": "Result rows returned, at most 5,000 rows, or this server instance's canvas row limit when that is lower. Column names match the SELECT clause."
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "canvas_disabled",
                          "canvas_not_found",
                          "table_not_found",
                          "system_catalog_access",
                          "invalid_sql"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `canvas_disabled`: DataCanvas is not enabled on this server instance. `canvas_not_found`: The canvas_id does not exist or has expired. `table_not_found`: The SQL names a table that is not staged on this canvas — it may have expired, or was never created. `system_catalog_access`: The SQL reads a database system catalog (information_schema, pg_catalog, sqlite_master, duckdb_*) instead of a staged table. `invalid_sql`: The SQL is not a read-only SELECT, contains disallowed functions, is syntactically invalid, or failed on the staged data (a cast or conversion the engine could not apply). Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "row_count": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "description": "Number of rows returned in the rows array (at most 5,000 rows, or this server instance's canvas row limit when that is lower), not the total matched by the query. When truncated is true the cap was reached, so row_count equals the cap applied and undercounts the true total. To get the true match count run SELECT COUNT(*) with the same filter, or call water_dataframe_describe for the full row count of the staged table; page large results with LIMIT/OFFSET."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when the query matched more rows than the cap (5,000 rows, or this server instance's canvas row limit when that is lower) and the result was capped — rows and row_count then cover only the first row_count matches, and the rest are not in this response. False means rows and row_count are the complete result for this query. When true, narrow the query with WHERE, page with LIMIT/OFFSET, or run SELECT COUNT(*) with the same filter for the true total."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "water_dataframe_describe",
          "title": "Water Dataframe Describe",
          "description": "List tables and columns staged on a DataCanvas by water_get_series or water_find_sites. Call this after water_get_series or water_find_sites returns a canvas_id to discover the exact table name and column types before writing a query. Then pass the table name to water_dataframe_query, or to water_dataframe_drop (when this server enables it) to remove a table you no longer need. Requires DataCanvas to be enabled on this server instance. Returns an error if DataCanvas is not available.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "canvas_id"
            ],
            "properties": {
              "canvas_id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{10}$",
                "description": "Canvas ID returned by water_get_series or water_find_sites. Identifies the canvas to describe."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "tables",
                  "canvas_id"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "canvas_disabled",
                          "canvas_not_found"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `canvas_disabled`: DataCanvas is not enabled on this server instance. `canvas_not_found`: The canvas_id does not exist or has expired. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "tables": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "kind",
                    "row_count",
                    "columns"
                  ],
                  "properties": {
                    "kind": {
                      "enum": [
                        "table",
                        "view"
                      ],
                      "type": "string",
                      "description": "Whether this is a base table or a SQL view."
                    },
                    "name": {
                      "type": "string",
                      "description": "Table or view name — use as the FROM target in SQL."
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "type",
                          "nullable"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Column name."
                          },
                          "type": {
                            "type": "string",
                            "description": "DuckDB column type (e.g. VARCHAR, DOUBLE)."
                          },
                          "nullable": {
                            "type": "boolean",
                            "description": "True if the column allows NULL values."
                          }
                        },
                        "description": "A column in this table.",
                        "additionalProperties": false
                      },
                      "description": "Column schema for this table."
                    },
                    "row_count": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "description": "Approximate row count for this table (DuckDB estimate; may differ from exact count)."
                    }
                  },
                  "description": "A staged canvas table or view.",
                  "additionalProperties": false
                },
                "description": "Tables and views on this canvas."
              },
              "canvas_id": {
                "type": "string",
                "description": "The canvas ID that was described — pass to water_dataframe_query."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "usgs-water-parameters",
          "uri": "usgs-water://parameters",
          "mimeType": "application/json",
          "description": "Curated table of well-known USGS parameter codes — the codes most requests use (discharge, gage height, water temperature, groundwater levels, common water-quality measures), with human-readable names, units, and thematic domain. Injectable context for clients that support resources; the same list water_list_parameters returns without a query. A curated subset of the ~19,700-code USGS catalog — search the rest with water_list_parameters query."
        },
        {
          "name": "Potomac River at Little Falls, MD",
          "uri": "usgs-water://site/01646500",
          "mimeType": "application/json",
          "description": "Site metadata for a USGS monitoring site, any agency: name, coordinates, type, HUC watershed code, state, county, drainage area, and altitude. Use water_find_sites to discover site numbers."
        },
        {
          "name": "Willamette River at Portland, OR",
          "uri": "usgs-water://site/14211720",
          "mimeType": "application/json",
          "description": "Site metadata for a USGS monitoring site, any agency: name, coordinates, type, HUC watershed code, state, county, drainage area, and altitude. Use water_find_sites to discover site numbers."
        },
        {
          "name": "Colorado River at Lees Ferry, AZ",
          "uri": "usgs-water://site/09380000",
          "mimeType": "application/json",
          "description": "Site metadata for a USGS monitoring site, any agency: name, coordinates, type, HUC watershed code, state, county, drainage area, and altitude. Use water_find_sites to discover site numbers."
        },
        {
          "name": "usgs-water-guide",
          "uri": "skill://usgs-water-guide/SKILL.md",
          "mimeType": "text/markdown",
          "description": "Gates and workflows for the water_* tools over USGS stream gages and groundwater wells. Covers whether a river or aquifer is high or low right now, telling live gages from discontinued ones, reading depth-to-water rankings (a shallower depth ranks higher), finding the parameter code a site actually reports, time zones and data lag, and SQL over staged series. Use when answering questions about USGS streamflow, gage height, groundwater levels, or water-quality sensors."
        }
      ],
      "prompts": []
    },
    "instructions": "USGS Water Data MCP server — access real-time and historical water data from ~8,000 active USGS stream gages and groundwater wells across the US and territories.\n- Start with water_list_parameters to discover parameter codes (00060=Discharge, 00065=Gage height); pass its query to search the full USGS parameter-code catalog for codes beyond the common ones (turbidity, nitrate, chlorophyll, suspended sediment)\n- Use water_find_sites to find sites by exactly one of bbox, state, county, or HUC watershed; every row carries lastObservedAt, and observedWithin (an ISO 8601 duration) keeps only sites that reported inside that window — parameterCd and hasDataTypeCd match sites that have ever reported\n- Use water_get_site_data_catalog to discover a site's parameters, sensors, statistics and UTC bounds; take YYYY-MM-DD from beginDate/endDate for water_get_series, pass statCd only for daily rows, and pass a row's timeSeriesId as methodId to request that exact series (water_get_readings and water_get_series report the same ID as methodId)\n- water_get_readings returns the latest ~15-min real-time values for up to 500 sites (the first 100 distinct are read; the rest return in deferredSites to resubmit), one series per sensor (method) when a site measures a parameter more than one way; a sensor that reported nothing in the period still returns with totalValues 0\n- water_get_series returns one historical series — daily, instantaneous, field (values measured by hand on a site visit, such as a well's groundwater level), or peak (annual peaks) — most recent records inline; the daily mean by default, with statCd (daily only) and methodId to pick another statistic or sensor from those listed in otherSeries; large ranges spill the complete series to DataCanvas when enabled on this server instance — inspect the staged table with water_dataframe_describe, then read it with water_dataframe_query; where this server enables it, water_dataframe_drop removes a staged table you no longer need\n- water_get_conditions gives the current reading at up to 500 sites (the first 100 distinct are ranked; the rest return in deferredSites) ranked against the full period-of-record percentiles; depth-to-water codes (72019) rank as water levels, so a shallower depth ranks higher\n- Groundwater depth (parameter 72019) from a continuous sensor reads through water_get_readings, water_get_series, and water_get_conditions like streamflow; levels measured by hand come from water_get_series with seriesType field; lab samples return no values\n- The usgs-water-guide skill (skill://usgs-water-guide/SKILL.md) carries the gates for telling live gages from discontinued ones, reading depth-to-water rankings, picking a site's parameter code, time zones and data lag, and SQL over staged series"
  },
  "changes": {
    "total": 1,
    "latest": [
      {
        "observed_at": "2026-11-23T21:46:01.759Z",
        "from_sha": "11bd6f4df340f5c60fc929584499b9b95b93b9f285546508d9ccd1a0717f2a8c",
        "to_sha": "2b52d5347eb10583a7f14d189412e5eb6901741f6df842648dd9924c16a12d43",
        "summary": {
          "tool_added": 15,
          "tool_changed": 65,
          "tool_removed": 14,
          "resource_changed": 2
        },
        "diff": {
          "truncated": true,
          "chars": 64164
        },
        "withheld": false
      }
    ]
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}