get_river_discharge

Pack: flood · Endpoint: https://gateway.pipeworx.io/flood/mcp

Get daily river discharge forecast in cubic meters per second for a location. Returns discharge values with timestamps. Use to monitor water flow rates for flood risk assessment.

Parameters

NameTypeRequiredDescription
latitudenumberyesLatitude of the location in decimal degrees.
longitudenumberyesLongitude of the location in decimal degrees.
forecast_daysnumbernoNumber of forecast days to retrieve (1–92). Defaults to 7.

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_river_discharge","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_river_discharge', {
  "latitude": 40.7128,
  "longitude": -74.006
});

More examples

{
  "latitude": 48.8566,
  "longitude": 2.3522,
  "forecast_days": 14
}

Response shape

Always returns: latitude, longitude, timezone, units, days

FieldTypeDescription
latitudenumberLatitude of the location in decimal degrees
longitudenumberLongitude of the location in decimal degrees
timezonestringTimezone name for the location
unitsobjectUnit labels for each daily variable
daysarrayArray of daily 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 forecast data",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "ISO date string"
          },
          "river_discharge": {
            "type": [
              "number",
              "null"
            ],
            "description": "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.

Regenerated from source · build May 9, 2026