Skip to main content
Glama
Waterboards MCP Server

Waterboards MCP Server

Get drinking water source chemistry near a ZIP code

waterboards_get_source_chemistry_near_zip
Read-onlyIdempotent

Retrieve current source-water chemistry for wells near a ZIP code; filter by chemical name or detected-only results to assess nearby drinking water sources.

Instructions

Get latest source-water chemistry for wells near a ZIP code.

Source: Gold view v_source_chemistry_near_zip (DDW/GAMA drinking water source chemistry, 2020 to present). Refreshed when the pipeline reloads the open data; each result has last_observed. Ordered nearest well first, then most recent.

chemical is a case-insensitive name fragment (e.g. 'arsenic', 'nitrate', 'PFOA'); omit it to see every chemical, which is large. Set detected_only to skip non-detects.

Each result is the latest sample for one well and chemical: pws_id, system_name, well_id, chemical_name, result_numeric, units, reporting_limit, is_non_detect, last_observed (sample date), sample_count, and source_url. When is_non_detect is true, result_numeric is null and the chemical was not found above reporting_limit. This is raw source water before treatment, not tap water, and not a health determination; units vary by chemical (UG/L, NG/L, MG/L, ...) so never compare across units.

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": {
      "zip_code": "<zip_code>"
    },
    "name": "waterboards_get_source_chemistry_near_zip"
  }
}

Input Schema

NameRequiredDescriptionDefault
chemicalNo
zip_codeYes5-digit US ZIP code, e.g. 94103.
paginationNo
radius_milesNoSearch radius in miles (1-31).
detected_onlyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, idempotent, open-world behavior, but the description adds substantial context: data source and refresh timing, nearest-well-first ordering, latest sample per well/chemical semantics, non-detect handling, and unit caveats. It does not describe pagination behavior, but the remaining behavioral disclosure is strong.

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?

The purpose is front-loaded and the rest is organized logically: source, ordering, parameter behavior, result fields, and caveats. It is somewhat long and enumerates return fields that the output schema may already cover, but nearly every sentence adds useful interpretation rather than repetition.

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

Completeness4/5

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

For a moderate-complexity chemistry lookup with an output schema, the description covers source, ordering, non-detect semantics, unit limitations, and the raw-source-water caveat. It leaves radius and pagination semantics to the schema, but nothing critical about correct interpretation is missing.

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

Parameters3/5

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

Schema description coverage is 40%, so the description carries more burden. It usefully explains that `chemical` is a case-insensitive fragment and that omitting it returns everything, and it explains `detected_only`, which the schema leaves undocumented. However, it does not add meaning beyond the schema for `radius_miles` or `pagination`, so the compensation is partial.

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?

The description names a specific verb and resource: 'Get latest source-water chemistry for wells near a ZIP code.' It also clearly scopes the data as 'raw source water before treatment, not tap water,' which distinguishes it from tap-water siblings and makes the tool's purpose unambiguous.

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

Usage Guidelines4/5

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

It gives clear usage context, including that omitting `chemical` returns a large result set and that `detected_only` skips non-detects. It also warns that results are raw source water, not tap water or a health determination. It does not explicitly name when to use this versus `waterboards_get_system_source_chemistry`, so it falls just short of full alternative routing.

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