Get METAR Weather Observations
aviation_get_metarGet current weather observations (METARs) for one or more airports. Returns decoded fields — wind direction/speed/gusts, visibility, ceiling with its kind (measured, or indefinite for vertical visibility into an obscuration), present weather, temperature, dewpoint, altimeter, cloud layers — plus the computed flight category (VFR/MVFR/IFR/LIFR) and the raw METAR string. Accepts 1–10 ICAO station IDs (e.g., KSEA, KJFK). Use aviation_find_stations to resolve or verify an ICAO ID, or to discover nearby stations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Hours of observation history to return (1–12). Default 1 returns only the most recent observation per station. | |
| station_ids | Yes | ICAO station IDs to query. 1–10 stations per call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Recovery guidance naming the missing station IDs. Present only on a partial result. It lists the candidate causes without asserting one — upstream omits the row either way. | |
| missing | No | Requested station IDs absent from the result. Absent when none are missing. | |
| partial | No | True when a requested station produced no observation. False affirms the result covers every requested station, so full coverage is distinguishable from a short batch rather than being inferred from the count. | |
| returned | No | Distinct station IDs that produced at least one observation. Counted per station, not per row — with hours > 1 a station reporting six times still appears once. | |
| requested | No | Station IDs this call asked for, in the order given. | |
| observations | No | Weather observations, one per station/time pair. Multiple entries per station when hours > 1. |