get_flood_forecast
Pack: flood · Endpoint: https://gateway.pipeworx.io/flood/mcp
Get multi-day flood forecast for a location with current, mean, and peak river discharge projections. Returns discharge statistics and severity assessment. Use to evaluate flood risk and timeline.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude of the location in decimal degrees. |
longitude | number | yes | Longitude of the location in decimal degrees. |
forecast_days | number | no | Number of forecast days to retrieve (1–92). Defaults to 16. |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006
}
curl
curl -X POST https://gateway.pipeworx.io/flood/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_flood_forecast","arguments":{"latitude":40.7128,"longitude":-74.006}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_flood_forecast', {
"latitude": 40.7128,
"longitude": -74.006
});
More examples
{
"latitude": 35.6762,
"longitude": 139.6503,
"forecast_days": 30
}
Response shape
Always returns: latitude, longitude, timezone, units, days
| Field | Type | Description |
|---|---|---|
latitude | number | Latitude of the location in decimal degrees |
longitude | number | Longitude of the location in decimal degrees |
timezone | string | Timezone name for the location |
units | object | Unit labels for each daily variable |
days | array | Array of daily flood forecast data |
Full JSON Schema
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude of the location in decimal degrees"
},
"longitude": {
"type": "number",
"description": "Longitude of the location in decimal degrees"
},
"timezone": {
"type": "string",
"description": "Timezone name for the location"
},
"units": {
"type": "object",
"description": "Unit labels for each daily variable",
"additionalProperties": {
"type": "string"
}
},
"days": {
"type": "array",
"description": "Array of daily flood forecast data",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "ISO date string"
},
"river_discharge": {
"type": [
"number",
"null"
],
"description": "Current river discharge in cubic meters per second"
},
"river_discharge_mean": {
"type": [
"number",
"null"
],
"description": "Mean river discharge in cubic meters per second"
},
"river_discharge_max": {
"type": [
"number",
"null"
],
"description": "Maximum river discharge in cubic meters per second"
}
},
"required": [
"date"
]
}
}
},
"required": [
"latitude",
"longitude",
"timezone",
"units",
"days"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"flood": {
"url": "https://gateway.pipeworx.io/flood/mcp"
}
}
}
See Getting Started for client-specific install steps.