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
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Decimal degrees, WGS84 |
longitude | number | yes | Decimal degrees, WGS84 (negative in the US) |
within_miles | number | no | Search radius in miles (default 10) |
characteristicName | string | no | Analyte name, e.g. “pH”, “Nitrate”, “Lead”. Strongly recommended — an unfiltered radius query is very large. |
startDate | string | no | Earliest sample date, YYYY-MM-DD |
endDate | string | no | Latest sample date, YYYY-MM-DD |
limit | number | no | Max 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.