wqp_results_near_point

Pack: water-quality-portal · Endpoint: https://gateway.pipeworx.io/water-quality-portal/mcp

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/wqp_results_near_point for the schema, then POST the same URL with its arguments for the data.

Water-quality sample results within a radius of a latitude/longitude — the “is the water near me tested, and what did it say” tool. Returns measured values with their station, date and unit. Sourced from the USGS/EPA Water Quality Portal.

Parameters

NameTypeRequiredDescription
latitudenumberyesDecimal degrees, WGS84
longitudenumberyesDecimal degrees, WGS84 (negative in the US)
within_milesnumbernoSearch radius in miles (default 10)
characteristicNamestringnoAnalyte name, e.g. “pH”, “Nitrate”, “Lead”. Strongly recommended — an unfiltered radius query is very large.
startDatestringnoEarliest sample date, YYYY-MM-DD
endDatestringnoLatest sample date, YYYY-MM-DD
limitnumbernoMax results to return (default 100, max 1000)

Example call

Arguments

{
  "latitude": 37.77,
  "longitude": -122.42,
  "within_miles": 5,
  "characteristicName": "pH",
  "startDate": "2020-01-01",
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/water-quality-portal/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wqp_results_near_point","arguments":{"latitude":37.77,"longitude":-122.42,"within_miles":5,"characteristicName":"pH","startDate":"2020-01-01","limit":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('wqp_results_near_point', {
  "latitude": 37.77,
  "longitude": -122.42,
  "within_miles": 5,
  "characteristicName": "pH",
  "startDate": "2020-01-01",
  "limit": 5
});

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "water-quality-portal": {
      "url": "https://gateway.pipeworx.io/water-quality-portal/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 18, 2026