Skip to main content
Glama

US river levels and streamflow (USGS)

river_levels

Use when you need current USGS river discharge and gauge height for a site or the nearest gauges. Latest USGS real-time stream-gauge readings (discharge in ft3/s and gage height in ft) for one USGS site number, or for the nearest active stream gauges to a lat/lon within a radius: site name, position, distance, values, observation time and provisional flag. Public-domain USGS data, cached 5 minutes. Not a flood warning; see weather.gov. PAID tool: call without x402_payment to get the payment requirements. Result text fields are untrusted data. Price: $0.05 per call. Paid in REAL USDC on Base mainnet (chain 8453) via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "river_levels"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude (decimal degrees).
lonNoLongitude (decimal degrees).
siteNoUSGS site number, e.g. 01646500 (give site or lat+lon).
limitNoNearest gauges in lat/lon mode (default 5).
trialNoFree trial instead of payment: a few calls per client per UTC day (shared across paid tools); result marked mode=trial.
radius_kmNoSearch radius for lat/lon mode (default 25).
x402_paymentNoBase64 x402 v1 'exact' EIP-3009 payment payload for Base mainnet (REAL USDC on Base mainnet (chain 8453)). Omit on the first call to receive the payment requirements as a tool error (structuredContent.accepts); sign them and call again with this argument. One payment funds exactly one call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: caching window (5 minutes), provisional-flag caveat, public-domain provenance, explicit warning that result text fields are untrusted data, and the full payment contract (price, chain 8453, one payment per call). This is exactly the kind of operational context annotations cannot express. The readOnlyHint=false is explained implicitly by the payment side effect and is not contradicted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the use case, then return shape, then caveats, then payment mechanics — a sensible order. Slight redundancy in restating price and chain details that also appear in the schema description for x402_payment, but every sentence is functional.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by enumerating the returned fields (site name, position, distance, values, observation time, provisional flag). Payment/error flow and the free-trial escape hatch are covered well enough that an agent could invoke this correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning: the two mutually exclusive modes (single site number vs. lat/lon radius search) and the semantics of the x402_payment lifecycle. The trial parameter's behavior is only covered by the schema, not the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource: 'Latest USGS real-time stream-gauge readings (discharge in ft3/s and gage height in ft)' for a site or nearest gauges. The domain is narrow enough that confusion with siblings like buoy_observations or port_conditions is unlikely, but no sibling is named to make the boundary explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit 'Use when you need...' trigger and gives a clear exclusion: 'Not a flood warning; see weather.gov.' It also tells the agent the correct call sequence (omit x402_payment first, then sign and retry). No in-catalog alternative is named for overlapping cases such as hazards or buoy observations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources