national-parks-mcp-server: get alerts
nps_get_alertsCurrent alerts for a park or a whole state — closures, hazards, caution notices, and information — with category and recency surfaced first so "is anything closed at Glacier right now?" is answered at a glance. Get park codes from nps_find_parks, or pass a stateCode for a statewide "what's closed" sweep. Returns most-recent-first. An empty result with totalCount 0 means no active alerts match the request (with category or query set, alerts outside that filter may still be active); an empty page with a non-zero totalCount means start ran past the end of the matches. Closures and road conditions change daily.
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": "nps_get_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum alerts to return (1–50), most-recent first. | |
| query | No | Free-text search within alert titles/descriptions (e.g. "road", "wildfire", "trail"). | |
| start | No | Zero-based offset for pagination within the matched set. Use with limit to page through results — when totalCount exceeds what was returned, re-request with start advanced by limit. | |
| category | No | Filter to one alert category. "Danger" and "Park Closure" are trip-affecting. Combined with parkCode/stateCode/query and applied before start/limit, so totalCount counts every matching alert, not one page. Omit to see all categories. | |
| parkCode | No | Park code, or comma-separated list (e.g. "glac", "yose,zion") — 4-letter lowercase codes. Get codes from nps_find_parks. Provide parkCode or stateCode; with neither, returns recent alerts service-wide. | |
| stateCode | No | Two-letter state code, or comma-separated list (e.g. "MT", "WY,MT,ID"). Returns alerts for all NPS sites in those states — use for a statewide sweep rather than one park. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Limit applied (populated when results were truncated). | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Alerts returned in this response (populated when capped by limit). | |
| alerts | No | Current alerts, most-recent first. Empty with totalCount 0 means no active alerts match the request; empty with a non-zero totalCount means start ran past the end of the matches. | |
| notice | No | Guidance on the result set: whether an empty page means no active alerts match (totalCount 0) or start ran past the end of the matches, the start value for the next page when more alerts matched, and a best-effort disclosure when the category filter could not cover every alert. | |
| truncated | No | True when more alerts matched than this response returned; absent on a complete result. | |
| totalCount | No | Total alerts matching the filter before the limit was applied. | |
| appliedFilters | No | Echo of parkCode/stateCode/category/query as applied. | |
| categoryBreakdown | No | Count of returned alerts per category, most severe first (e.g. "Park Closure: 3, Caution: 1, Information: 2"). |