Skip to main content
Glama

usgs-water-mcp-server

Water Get Readings

water_get_readings
Read-onlyIdempotent

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sites": "<sites>"
    },
    "name": "water_get_readings"
  }
}

Input Schema

NameRequiredDescriptionDefault
sitesYesOne 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.
periodNoISO 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.PT2H
parameterCdNoParameter 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.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
queryNoQuery parameters used for this request.
totalNoNumber of site + parameter + method time series returned in readings (at most 100).
readingsNoTime 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.
truncatedNoTrue 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.
totalSeriesNoNumber 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.
missingSitesNoSite 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.
deferredSitesNoDistinct 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / sites / description
      Previous value: -"One or more USGS site numbers to query. Maximum 100 per call."New value: +"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."
    • changedInput schema / properties / sites / maxItems
      Previous value: -100New value: +500
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "readings",
      -      "total",
      -      "totalSeries",
      -      "truncated",
      -      "missingSites",
      -      "query"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "readings",
      +      "total",
      +      "totalSeries",
      +      "truncated",
      +      "missingSites",
      +      "deferredSites",
      +      "query"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / deferredSites
      Added value: +{
      +  "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.",
      +  "items": {
      +    "description": "A USGS site number not read in this call.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: No requested site returned a series — 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. `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."New value: +"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."
    • changedOutput schema / properties / missingSites / description
      Previous value: -"Requested site numbers that returned no series — 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. Empty when every requested site 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."New value: +"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."
    • changedOutput schema / properties / missingSites / items / description
      Previous value: -"A requested USGS site number that returned no time series."New value: +"A USGS site number read in this call that returned no series."
    • changedOutput schema / properties / query / properties / sites / description
      Previous value: -"Site numbers queried."New value: +"Site numbers read in this call: the first 100 distinct numbers of sites, in input order."
    • changedOutput schema / properties / truncated / description
      Previous value: -"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."New value: +"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."
  2. Changed13 schema fields changed
    • changedInput schema / properties / period / description
      Previous value: -"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."New value: +"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."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: NWIS returned no time series — the site(s) may not exist, or may not have data for the requested parameter(s) in the requested period. NWIS returns the same empty response for both cases. `invalid_request`: NWIS rejected the request. Input formats are validated against NWIS-accepted patterns before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: NWIS returned a 5xx error or sent a response body that is not valid WaterML-JSON (cut off mid-document), and retrying did not clear it. `upstream_timeout`: The NWIS request exceeded its deadline. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: No requested site returned a series — 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. `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."
    • changedOutput schema / properties / missingSites / description
      Previous value: -"Requested site numbers NWIS returned no series for — the site may not exist, or may not measure the requested parameter(s) in the requested period. Empty when every requested site returned data. Verify these with water_find_sites."New value: +"Requested site numbers that returned no series — 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. Empty when every requested site 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."
    • changedOutput schema / properties / readings / description
      Previous value: -"Time series per site + parameter + method combination, in NWIS order (site, then parameter code, then method). A method block NWIS returned empty is omitted when another method of the same site and parameter carries values. 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."New value: +"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."
    • changedOutput schema / properties / readings / items / properties / methodDescription / description
      Previous value: -"NWIS description of the method, e.g. \"From multiparameter sonde\", \"[(2)]\", or \"7.1 ft from riverbed (top), [Discontinued]\". Null when NWIS leaves it blank, as it does for the default series at most single-sensor sites."New value: +"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."
    • changedOutput schema / properties / readings / items / properties / methodId / description
      Previous value: -"NWIS method ID of this series. A site can measure one parameter with several sensors or at several locations — each is its own method and its own entry in readings. Null only when NWIS returned the series with no method block."New value: +"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."
    • changedOutput schema / properties / readings / items / properties / parameterName / description
      Previous value: -"Human-readable parameter name with units (e.g. \"Streamflow, ft³/s\")."New value: +"Parameter description from the USGS parameter-code catalog, units included (e.g. \"Discharge, cubic feet per second\")."
    • changedOutput schema / properties / readings / items / properties / totalValues / description
      Previous value: -"Number of value records NWIS returned for this site and parameter over the requested period, before the 10-record cap. Equals values.length when nothing was capped."New value: +"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."
    • changedOutput schema / properties / readings / items / properties / unitCode / description
      Previous value: -"Unit of measure for the values in this series (e.g. \"ft3/s\", \"ft\", \"°C\")."New value: +"Unit of measure for the values in this series (e.g. \"ft3/s\", \"ft\", \"deg C\")."
    • changedOutput schema / properties / readings / items / properties / values / items / properties / qualifiers / description
      Previous value: -"Data qualifier codes for this value."New value: +"Data qualifier codes for this value: the approval code first, then one per qualifier."
    • changedOutput schema / properties / readings / items / properties / values / items / properties / qualifiers / items / description
      Previous value: -"A USGS data qualifier code (e.g. \"P\" = provisional, \"A\" = approved)."New value: +"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\")."
    • changedOutput schema / properties / readings / items / properties / values / items / properties / value / description
      Previous value: -"Measured value as a string. Empty string when NWIS reported no value for that interval — qualifiers then give the reason (e.g. \"Ssn\" seasonal, \"Dis\" discontinued, \"Dry\", \"Eqp\" equipment malfunction)."New value: +"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)."
    • changedOutput schema / properties / totalSeries / description
      Previous value: -"Number of site + parameter + method time series before the 100-series cap — an empty method block omitted as described under readings is not counted. Greater than total exactly when the cap dropped series; narrow with parameterCd or split the sites across calls to get the rest."New value: +"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."
  3. Changed2 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: NWIS returned no time series — the site(s) may not exist, or may not have data for the requested parameter(s) in the requested period. NWIS returns the same empty response for both cases. `invalid_request`: NWIS rejected the request. Input formats are validated against NWIS-accepted patterns before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: NWIS returned a 5xx error, timed out, or sent a response body that is not valid WaterML-JSON (cut off mid-document), and retrying did not clear it. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: NWIS returned no time series — the site(s) may not exist, or may not have data for the requested parameter(s) in the requested period. NWIS returns the same empty response for both cases. `invalid_request`: NWIS rejected the request. Input formats are validated against NWIS-accepted patterns before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: NWIS returned a 5xx error or sent a response body that is not valid WaterML-JSON (cut off mid-document), and retrying did not clear it. `upstream_timeout`: The NWIS request exceeded its deadline. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "no_data_for_parameter",
      -  "invalid_request",
      -  "upstream_error"
      -]New value: +[
      +  "no_data_for_parameter",
      +  "invalid_request",
      +  "upstream_error",
      +  "upstream_timeout"
      +]
  4. Changed12 schema fields changed
    • changedInput schema / properties / parameterCd / description
      Previous value: -"Parameter codes to return. Omit to get all parameters available at each site. Use water_list_parameters to discover codes."New value: +"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."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "readings",
      -      "total",
      -      "truncated",
      -      "missingSites",
      -      "query"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "readings",
      +      "total",
      +      "totalSeries",
      +      "truncated",
      +      "missingSites",
      +      "query"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: NWIS returned no time series — the site(s) may not exist, or may not have data for the requested parameter(s) in the requested period. NWIS returns the same empty response for both cases. `invalid_request`: NWIS rejected the request. Input formats are validated against NWIS-accepted patterns before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: NWIS returned a 5xx error or the request timed out. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: NWIS returned no time series — the site(s) may not exist, or may not have data for the requested parameter(s) in the requested period. NWIS returns the same empty response for both cases. `invalid_request`: NWIS rejected the request. Input formats are validated against NWIS-accepted patterns before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: NWIS returned a 5xx error, timed out, or sent a response body that is not valid WaterML-JSON (cut off mid-document), and retrying did not clear it. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / readings / description
      Previous value: -"Time series per site+parameter combination."New value: +"Time series per site + parameter + method combination, in NWIS order (site, then parameter code, then method). A method block NWIS returned empty is omitted when another method of the same site and parameter carries values. 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."
    • changedOutput schema / properties / readings / items / description
      Previous value: -"Time series result for one site+parameter combination."New value: +"Time series result for one site + parameter + method combination."
    • addedOutput schema / properties / readings / items / properties / methodDescription
      Added value: +{
      +  "description": "NWIS description of the method, e.g. \"From multiparameter sonde\", \"[(2)]\", or \"7.1 ft from riverbed (top), [Discontinued]\". Null when NWIS leaves it blank, as it does for the default series at most single-sensor sites.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / readings / items / properties / methodId
      Added value: +{
      +  "description": "NWIS method ID of this series. A site can measure one parameter with several sensors or at several locations — each is its own method and its own entry in readings. Null only when NWIS returned the series with no method block.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / readings / items / properties / values / items / properties / value / description
      Previous value: -"Measured value as a string (empty string means no data for that interval)."New value: +"Measured value as a string. Empty string when NWIS reported no value for that interval — qualifiers then give the reason (e.g. \"Ssn\" seasonal, \"Dis\" discontinued, \"Dry\", \"Eqp\" equipment malfunction)."
    • changedOutput schema / properties / readings / items / required
      Previous value: -[
      -  "siteNumber",
      -  "siteName",
      -  "parameterCd",
      -  "parameterName",
      -  "unitCode",
      -  "values",
      -  "totalValues"
      -]New value: +[
      +  "siteNumber",
      +  "siteName",
      +  "parameterCd",
      +  "parameterName",
      +  "unitCode",
      +  "methodId",
      +  "methodDescription",
      +  "values",
      +  "totalValues"
      +]
    • changedOutput schema / properties / total / description
      Previous value: -"Total number of site+parameter time series returned."New value: +"Number of site + parameter + method time series returned in readings (at most 100)."
    • addedOutput schema / properties / totalSeries
      Added value: +{
      +  "description": "Number of site + parameter + method time series before the 100-series cap — an empty method block omitted as described under readings is not counted. Greater than total exactly when the cap dropped series; narrow with parameterCd or split the sites across calls to get the rest.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when at least one series held more than 10 records and was capped. Per-series counts are in readings[].totalValues; use water_get_series for the full series."New value: +"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."
  5. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "readings",
      +      "total",
      +      "truncated",
      +      "missingSites",
      +      "query"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `no_data_for_parameter`: NWIS returned no time series — the site(s) may not exist, or may not have data for the requested parameter(s) in the requested period. NWIS returns the same empty response for both cases. `invalid_request`: NWIS rejected the request. Input formats are validated against NWIS-accepted patterns before the call, so this surfaces a value that is well-formed but unacceptable upstream. `upstream_error`: NWIS returned a 5xx error or the request timed out. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "no_data_for_parameter",
      +            "invalid_request",
      +            "upstream_error"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "readings",
      -  "total",
      -  "truncated",
      -  "missingSites",
      -  "query"
      -]
  6. Changed10 schema fields changed
    • addedInput schema / properties / parameterCd / items / pattern
      Added value: +"^\\d{5}$"
    • changedInput schema / properties / period / description
      Previous value: -"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)."New value: +"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."
    • addedInput schema / properties / period / pattern
      Added value: +"^P(?!$)(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$"
    • addedInput schema / properties / sites / items / pattern
      Added value: +"^\\d{8,15}$"
    • addedOutput schema / properties / missingSites
      Added value: +{
      +  "description": "Requested site numbers NWIS returned no series for — the site may not exist, or may not measure the requested parameter(s) in the requested period. Empty when every requested site returned data. Verify these with water_find_sites.",
      +  "items": {
      +    "description": "A requested USGS site number that returned no time series.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / readings / items / properties / totalValues
      Added value: +{
      +  "description": "Number of value records NWIS returned for this site and parameter over the requested period, before the 10-record cap. Equals values.length when nothing was capped.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / readings / items / properties / values / description
      Previous value: -"Time-ordered value records for this site and parameter."New value: +"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."
    • changedOutput schema / properties / readings / items / required
      Previous value: -[
      -  "siteNumber",
      -  "siteName",
      -  "parameterCd",
      -  "parameterName",
      -  "unitCode",
      -  "values"
      -]New value: +[
      +  "siteNumber",
      +  "siteName",
      +  "parameterCd",
      +  "parameterName",
      +  "unitCode",
      +  "values",
      +  "totalValues"
      +]
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when at least one series held more than 10 records and was capped. Per-series counts are in readings[].totalValues; use water_get_series for the full series.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "readings",
      -  "total",
      -  "query"
      -]New value: +[
      +  "readings",
      +  "total",
      +  "truncated",
      +  "missingSites",
      +  "query"
      +]
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations cover safety (readOnly, idempotent, openWorld), and the description adds substantial operational context beyond them: the 100-distinct-site read cap with deferredSites, the 100-series cap with totalSeries and per-site fairness, the 10-record-per-series truncation with truncated=true, and totalValues 0 for silent sensors. It also discloses that sites with no series appear in missingSites rather than being silently dropped.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and no filler sentences; every clause carries a real constraint. However, it is a single dense paragraph with many caps and field names interleaved, which makes scanning harder than a short bulleted structure would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still explains the key return fields an agent must act on (deferredSites, totalSeries, truncated, missingSites, totalValues), which is exactly the context needed for a capped, multi-site read tool. Nothing material for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds integrative meaning, such as the consequence of omitting parameterCd (one series per site/parameter/method, which can blow the 100-series cap) and how period widening interacts with the 10-record truncation. Some of this duplicates the schema's own parameter descriptions, which limits it to a 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get the latest instantaneous (~15-min, real-time) values for USGS sites') and immediately characterizes the record shape. It also names the sibling it is not (water_get_series for full date ranges), so an agent can route between them without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly covers when to use this tool, when to switch to water_get_series, how to discover site numbers via water_find_sites, and how to inspect parameters via water_get_site_data_catalog. It even prescribes the recovery workflow: pass deferredSites as sites in another call, or pass parameterCd/split sites to get past the 100-series cap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.