Water Get Conditions
water_get_conditionsGet a USGS site's current reading ranked against its full period-of-record daily-mean percentiles for the same calendar day — a "how unusual is this" percentileClass (record-high to record-low), not a flood-stage or drought determination (this tool fetches no authoritative thresholds). The reading is instantaneous but the percentiles are daily-mean, so the ranking is approximate (see historicalContext.comparisonBasis). When the record is too short to rank, returns the reading with historicalContext=null instead of an error. Use water_find_sites and water_list_parameters to resolve inputs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | USGS site number (8–15 digits, e.g. "01646500" for Potomac River at Little Falls). Use water_find_sites to discover valid site numbers. | |
| parameterCd | Yes | 5-digit USGS parameter code (e.g. "00060" for discharge, "00065" for gage height). Use water_list_parameters to discover codes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Informational note explaining why historicalContext is null or incomplete. Absent when full historical context is available. | |
| error | No | Present when the call failed. Absent on success. | |
| siteName | No | Human-readable USGS site name. | |
| unitCode | No | Unit of measure for currentValue and the historical percentiles (e.g. "ft3/s", "ft"). | |
| qualifiers | No | Data qualifier codes for the current reading. | |
| siteNumber | No | USGS site number (8–15 digits, e.g. "01646500"). | |
| parameterCd | No | 5-digit USGS parameter code that was queried (e.g. "00060"). | |
| currentValue | No | Most recent observed value as a string. Empty string when no data is available for the current period. | |
| parameterName | No | Human-readable parameter name with units (e.g. "Streamflow, ft³/s"). | |
| currentDateTime | No | ISO 8601 date-time of the most recent observation. | |
| historicalContext | No | Historical percentile context for the observation's calendar day. Non-null only when historicalContextStatus is "available"; see that field for why it is otherwise absent. | |
| historicalContextStatus | No | Why historicalContext is or is not populated. 'available': percentiles for the observation's calendar day are present. 'no_matching_day': the stat table has rows but none for that calendar day. 'no_record': the stat table is empty — a new site, or a record too short to compute percentiles. 'unavailable': the statistics service call failed — a transient upstream error, not a statement about the site's record; retry shortly. |