Get NWS alerts
get_alertsNWS watches, warnings, advisories. Point (city/ZIP/lat+lon): containing polygons. BBox or US state/DC/CONUS (codes, full names, US/national): intersecting polygons. A city miss is not a statewide all-clear — query the state or a bbox; never say regional inventory is impossible. NY/WA and "New York State"/"Washington State" are states; "New York"/"Washington" stay cities. Omit at for now; at (ISO-8601 UTC) is the snapshot then. Empty = all-clear or purged (~24h). alert_id = detail+geometry, ignores at. Ex: {"location":"WI","events":["Tornado Warning"]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO-8601 UTC past instant for the in-effect snapshot. Ignored with alert_id. | |
| lat | No | Latitude in decimal degrees (-90 to 90). Most tools also accept a `location` place-name string instead of lat/lon. | |
| lon | No | Longitude in decimal degrees (-180 to 180). For continental US use negative values (west of the prime meridian). | |
| bbox | No | Bounding box {west,south,east,north}. Skips geocoding; intersecting polygons. | |
| events | No | Optional event-name filter, e.g. ["Tornado Warning"]. | |
| alert_id | No | Alert identifier for detail mode. When set, location is ignored. | |
| location | No | Free-text place: city ("Denver"), city+state ("Portland, OR"), US ZIP ("50219"), or "lat,lon" ("39.74,-104.99"). Provide either this OR explicit lat+lon, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alert | No | ||
| alerts | No | ||
| widget | No | sw-ui-spec widget block rendered by the MCP Apps weather widget (ui://weather-widget/v1/index.html). Additive; safe to ignore. | |
| alert_id | No | ||
| location | No | ||
| valid_time | No | Echo of at when an as-of snapshot was requested. |