Get Water Level
noaa_marine_get_water_levelObserved water level, real-time or historical, for a CO-OPS water-level station, paired with tide predictions for the same period so the residual (observed − predicted) shows storm surge when positive and anomalous drawdown when negative. The interval selects the cadence: 6min (default) is the full curve, hourly and high_low cover months to a year of the same series at far fewer rows, and daily_mean serves Great Lakes stations only. Each interval carries its own CO-OPS range ceiling — 31 days for 6min, 365 for hourly and high_low, 3655 for daily_mean — rejected locally before the call, and only 6min and hourly report a residual. Observations and predictions are fetched independently, so when the prediction series is empty, predictions_status says whether CO-OPS has none for this station and range or the prediction fetch failed — the observed series returns either way, and residual_summary is present only when both series are and the cadence supports the join. A sensor outage leaves slots with no reading; those slots are dropped and counted in gaps_dropped, so the observed series is continuous across the range only when that count is absent. Each call returns up to limit observations from offset, with the predictions in their time span; a range of at most limit observations returns whole, and a longer one reports rows_matched, rows_returned, and next_offset, the offset that reaches the rest. Use noaa_marine_find_stations first to resolve a station name or location to a valid station ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"station_id": "<station_id>",
"begin_date": "<begin_date>",
"end_date": "<end_date>"
},
"name": "noaa_marine_get_water_level"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datum | No | Datum the observed heights are referenced to. MLLW (default) is the US nautical chart datum, and MHHW (mean higher high water) is the flooding reference; MHW, MTL, MSL, and MLW are the other tidal planes. NAVD is NAVD88 and reads only where the station has an NAVD88 tie. STND is the station's own datum and is the plane that works where no tidal datum exists. IGLD and LWD apply at Great Lakes stations only, and CRD at Columbia River stations only. LWI and HWI are lunitidal intervals available in monthly means. A datum this station does not carry comes back as datum_unavailable, whose hint names a datum to retry with, and a station with no water-level gauge at all as no_gauge. | MLLW |
| limit | No | Observation rows to return on this page; predictions cover the same time span. Default 50; a larger value returns at most 1,000 and says so. | |
| units | No | Unit system: english = feet; metric = meters. | english |
| offset | No | Row offset into the matched observation series, for reading a range longer than one page. 0 (default) starts at the first row; pass the next_offset from a previous call to continue. An offset past the last row returns an empty page rather than an error. | |
| end_date | Yes | End date (inclusive), YYYYMMDD or YYYY-MM-DD, e.g. "20240601" or "2024-06-01". | |
| interval | No | Observed cadence. 6min (default) is the full curve, 31 days per request, the only one carrying a quality flag. hourly is hourly heights, 365 days per request, and reports a residual against the hourly prediction series. high_low is the observed high and low waters with their H/HH/L/LL classification, 365 days per request, and reports no residual because observed extremes do not fall on predicted extreme times. daily_mean is the daily mean water level, 3655 days per request, published at Great Lakes stations only and with no paired prediction series; a coastal station comes back as great_lakes_only. | 6min |
| time_zone | No | Time zone for returned timestamps. lst_ldt = local standard/daylight time (default); gmt = UTC; lst = local standard time year-round. Overridden to lst on interval="daily_mean", which CO-OPS serves in local standard time only and otherwise stamps every row a day off. | lst_ldt |
| begin_date | Yes | Start date, YYYYMMDD or YYYY-MM-DD, e.g. "20240601" or "2024-06-01". | |
| station_id | Yes | CO-OPS water-level station ID (numeric, e.g. "9447130" for Seattle). Obtain from noaa_marine_find_stations with types=["water_level"]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datum | No | Tidal datum used — echoed for correct interpretation of water heights. | |
| error | No | Present when the call failed. Absent on success. | |
| units | No | Height units: "english" (feet) or "metric" (meters). | |
| notice | No | That limit was clamped to its cap, why the paired prediction series is missing or carries no residual, how many sample slots were dropped, where a recent hourly or daily mean series ends short of the requested range, and what this page covers — whichever apply, composed into one string. | |
| interval | No | Observed cadence echoed from the request — the CO-OPS product these rows came from, and what decides whether quality, type, and residual_summary are populated. | |
| truncated | No | True when this page stops short of the last matched observation, so further rows remain at next_offset. False on the final page and on a page past the end. Absent when the whole matched series was returned. | |
| station_id | No | Station ID echoed from the request — for chaining. | |
| next_offset | No | Offset to pass as offset on the next call, or null when this page reaches the last matched observation. Absent when the whole matched series was returned. | |
| page_offset | No | Observation row offset this page starts at, echoed from the request. Absent when the whole matched series was returned. | |
| predictions | No | Paired tide predictions covering the same period as the returned observations, at the interval matching the observed cadence. Every prediction in the page span is included and none repeats across pages, so a page whose span crosses a sensor outage carries more predictions than observations. Always empty on the daily_mean interval, which has no paired series. Otherwise empty when CO-OPS returned no predictions for this station and range, or when the prediction fetch failed — predictions_status says which. | |
| gaps_dropped | No | Number of sample slots CO-OPS sent with no reading, dropped from observations. Present only when there was at least one. The observed series is therefore not continuous across the requested range: it has this many missing slots, and rows_matched counts only the slots that carry a value. | |
| observations | No | Observed water level readings at the requested cadence — the whole matched series when it holds at most limit rows, otherwise the page of up to limit rows starting at offset. rows_matched and next_offset report what a page left behind. | |
| rows_matched | No | Observation rows the requested date range matched, before the page was cut. Absent when the whole matched series was returned. | |
| station_name | No | Station name as returned by CO-OPS. | |
| rows_returned | No | Observation rows this page carries — the length of observations. Absent when the whole matched series was returned. | |
| residual_summary | No | Summary of observed-minus-predicted residuals in the requested units, computed across the whole matched series rather than the returned page — so a paged response still reports the largest surge in the range. Present only on the 6min and hourly intervals, and only when both series are available; the notice says why it is absent on high_low and daily_mean. | |
| observed_extremes | No | Highest and lowest observations at this cadence across the full matched series before paging. On daily_mean, both values are daily averages. | |
| predictions_status | No | Present only when predictions is empty on an interval that has a paired series. "empty" means CO-OPS returned no prediction rows for this station and date range; "unavailable" means the prediction fetch failed, so no comparison series could be retrieved and the absence says nothing about the station. Absent when predictions were returned, and on the daily_mean interval, which has no paired series to report on. |