get_current

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

Get current instantaneous streamflow (discharge, cfs) and gage height (ft) for a USGS monitoring site.

Parameters

NameTypeRequiredDescription
site_idstringyesUSGS site number (e.g., “01646500” for Potomac River at Little Falls, MD)

Example call

Arguments

{
  "site_id": "01646500"
}

curl

curl -X POST https://gateway.pipeworx.io/usgswater/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_current","arguments":{"site_id":"01646500"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_current', {
  "site_id": "01646500"
});

More examples

{
  "site_id": "01638500"
}

Response shape

Always returns: site_id, site_name, readings

FieldTypeDescription
site_idstringUSGS site number
site_namestring | nullName of the monitoring site
readingsarrayArray of current instantaneous readings
Full JSON Schema
{
  "type": "object",
  "properties": {
    "site_id": {
      "type": "string",
      "description": "USGS site number"
    },
    "site_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the monitoring site"
    },
    "readings": {
      "type": "array",
      "description": "Array of current instantaneous readings",
      "items": {
        "type": "object",
        "properties": {
          "parameter": {
            "type": [
              "string",
              "null"
            ],
            "description": "Parameter name (e.g., streamflow, gage height)"
          },
          "unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unit code (e.g., cfs, ft)"
          },
          "value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Numeric value of the reading"
          },
          "date_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO datetime of the reading"
          },
          "qualifiers": {
            "type": "array",
            "description": "Data quality qualifiers",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  },
  "required": [
    "site_id",
    "site_name",
    "readings"
  ]
}

Connect

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

{
  "mcpServers": {
    "usgswater": {
      "url": "https://gateway.pipeworx.io/usgswater/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026