Skip to main content
Glama

usgs-water-mcp-server

Water List Parameters

water_list_parameters
Read-onlyIdempotent

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "water_list_parameters"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoFilter 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.all
limitNoMost 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.
queryNoSearch 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.
offsetNoNumber 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.

Output Schema

NameRequiredDescriptionDefault
noteNoGuidance 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.
errorNoPresent when the call failed. Absent on success.
queryNoThe catalog query searched, trimmed. Absent when listing the curated codes.
totalNoNumber of entries that matched — every match, before limit/offset windowing.
truncatedNoTrue 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).
nextOffsetNoOffset 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).
parametersNoThe 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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 25,
      +  "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.",
      +  "maximum": 4000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 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.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / nextOffset
      Added value: +{
      +  "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).",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / note / description
      Previous value: -"Guidance when a query matched nothing or was truncated. Absent otherwise."New value: +"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."
    • changedOutput schema / properties / parameters / description
      Previous value: -"Matching parameter entries. 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 — at most 25."New value: +"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)."
    • changedOutput schema / properties / total / description
      Previous value: -"Number of entries that matched, before the 25-entry cap."New value: +"Number of entries that matched — every match, before limit/offset windowing."
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when a query matched more than 25 entries and only the first 25 are listed — add words to narrow it."New value: +"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)."
  2. Changed19 schema fields changed
    • changedInput schema / properties / group / description
      Previous value: -"Filter by thematic domain: \"streamflow\", \"groundwater\", \"temperature\", \"meteorological\", \"water-quality\", or \"all\" (default) for the full catalog."New value: +"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."
    • addedInput schema / properties / query
      Added value: +{
      +  "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.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "parameters",
      -      "total"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "parameters",
      +      "total",
      +      "truncated"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode."New value: +"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."
    • addedOutput schema / properties / error / properties / data / properties / reason / examples
      Added value: +[
      +  "query_with_group",
      +  "upstream_error"
      +]
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Guidance when a query matched nothing or was truncated. Absent otherwise.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / parameters / description
      Previous value: -"Matching parameter records with code, name, unit, and group."New value: +"Matching parameter entries. 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 — at most 25."
    • changedOutput schema / properties / parameters / items / description
      Previous value: -"A USGS parameter code entry with name, unit, and domain group."New value: +"A USGS parameter code entry."
    • addedOutput schema / properties / parameters / items / properties / description
      Added value: +{
      +  "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.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / parameters / items / properties / group / description
      Previous value: -"Thematic domain grouping for filtering."New value: +"Thematic domain of a curated entry. Absent on usgs-catalog entries."
    • addedOutput schema / properties / parameters / items / properties / source
      Added value: +{
      +  "description": "\"curated\": one of the well-known codes this server lists by default. \"usgs-catalog\": a record from the full USGS parameter-code catalog.",
      +  "enum": [
      +    "curated",
      +    "usgs-catalog"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / parameters / items / properties / unit / description
      Previous value: -"Unit of measure (e.g. \"ft³/s\", \"ft\", \"°C\")."New value: +"Unit of measure (e.g. \"ft³/s\", \"ft\", \"°C\", \"FNU\")."
    • changedOutput schema / properties / parameters / items / required
      Previous value: -[
      -  "code",
      -  "name",
      -  "unit",
      -  "group"
      -]New value: +[
      +  "code",
      +  "name",
      +  "unit",
      +  "source"
      +]
    • addedOutput schema / properties / query
      Added value: +{
      +  "description": "The catalog query searched, trimmed. Absent when listing the curated codes.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / total / description
      Previous value: -"Number of parameters returned."New value: +"Number of entries that matched, before the 25-entry cap."
    • addedOutput schema / properties / total / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / total / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / total / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when a query matched more than 25 entries and only the first 25 are listed — add words to narrow it.",
      +  "type": "boolean"
      +}
  3. 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": [
      +      "parameters",
      +      "total"
      +    ]
      +  },
      +  {
      +    "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.",
      +          "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: -[
      -  "parameters",
      -  "total"
      -]
  4. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent), but the description adds substantive behavior: the curated path uses a built-in table with no network call while query hits the full remote catalog, results list curated matches first, and pagination is governed by total and nextOffset. It does not spell out error behavior for an unmatched code, which keeps it a step below full marks.

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 the curated-vs-query fork before the examples and pagination details. It is a single dense paragraph that packs a lot of value, though the inline code examples and parenthetical units make it slightly heavy for a lookup tool.

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, so return values needn't be re-explained, yet the description still covers the pagination contract (limit, offset, total, nextOffset) and the catalog-size/ordering behavior an agent needs to plan calls. Nothing material is missing for a 4-parameter, fully documented read-only lookup tool.

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 baseline would be 3, but the description adds real meaning beyond the schema: it frames parameterCd as the shared currency across tools, clarifies that group is curated-only, and explains that limit/offset window 'whichever list the call selects' with total counting every match. Minor overlap with schema text on defaults keeps it at 4 rather than 5.

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 — 'Look up USGS parameter codes' — and immediately explains the relationship to siblings: these are 'the 5-digit codes every other tool's parameterCd takes.' The two operating modes (built-in curated table vs. full catalog search) are named concretely, so an agent can distinguish this from water_find_sites or water_get_readings without opening a schema.

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?

Gives explicit routing rules: no query = curated list, query = full ~19,700-code catalog, bare 5-digit code = direct lookup, and it even names the use cases that require query (turbidity, nitrate, chlorophyll, sediment, salinity). It also warns that group applies to the curated list only and should be left 'all' when passing query — a genuine when-not condition.

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.