get_predictions
Pack: tides · Endpoint: https://gateway.pipeworx.io/tides/mcp
Get hi/lo tide predictions for a NOAA station over a date range. Dates must be formatted YYYYMMDD.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
station_id | string | yes | NOAA station ID (e.g. “9414290” for San Francisco) |
begin_date | string | yes | Start date in YYYYMMDD format (e.g. “20240101”) |
end_date | string | yes | End date in YYYYMMDD format (e.g. “20240107”) |
Example call
Arguments
{
"station_id": "9414290",
"begin_date": "20240101",
"end_date": "20240107"
}
curl
curl -X POST https://gateway.pipeworx.io/tides/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_predictions","arguments":{"station_id":"9414290","begin_date":"20240101","end_date":"20240107"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_predictions', {
"station_id": "9414290",
"begin_date": "20240101",
"end_date": "20240107"
});
More examples
{
"station_id": "8454000",
"begin_date": "20240615",
"end_date": "20240622"
}
Response shape
Always returns: station_id, begin_date, end_date, datum, units, count, predictions
| Field | Type | Description |
|---|---|---|
station_id | string | NOAA station ID |
begin_date | string | Start date in YYYYMMDD format |
end_date | string | End date in YYYYMMDD format |
datum | string | Vertical datum reference (MLLW) |
units | string | Measurement units (feet) |
count | integer | Number of tide predictions returned |
predictions | array | Array of hi/lo tide predictions |
Full JSON Schema
{
"type": "object",
"properties": {
"station_id": {
"type": "string",
"description": "NOAA station ID"
},
"begin_date": {
"type": "string",
"description": "Start date in YYYYMMDD format"
},
"end_date": {
"type": "string",
"description": "End date in YYYYMMDD format"
},
"datum": {
"type": "string",
"description": "Vertical datum reference (MLLW)"
},
"units": {
"type": "string",
"description": "Measurement units (feet)"
},
"count": {
"type": "integer",
"description": "Number of tide predictions returned"
},
"predictions": {
"type": "array",
"description": "Array of hi/lo tide predictions",
"items": {
"type": "object",
"properties": {
"t": {
"type": "string",
"description": "Prediction time (ISO format)"
},
"v": {
"type": "string",
"description": "Predicted water level value"
},
"type": {
"type": "string",
"description": "Tide type (H for high, L for low)"
}
}
}
}
},
"required": [
"station_id",
"begin_date",
"end_date",
"datum",
"units",
"count",
"predictions"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"tides": {
"url": "https://gateway.pipeworx.io/tides/mcp"
}
}
}
See Getting Started for client-specific install steps.