list_alerts
Pack: nps · Endpoint: https://gateway.pipeworx.io/nps/mcp
Current park alerts — closures, road conditions, weather warnings, danger advisories. Filter by parkCode or state.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
park_code | string | no | parkCode(s), comma-separated |
state | string | no | 2-letter state code |
query | string | no | Free-text alert search |
limit | number | no | 1-500 (default 50) |
Example call
Arguments
{
"park_code": "grca"
}
curl
curl -X POST https://gateway.pipeworx.io/nps/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_alerts","arguments":{"park_code":"grca"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_alerts', {
"park_code": "grca"
});
More examples
{
"state": "CO",
"query": "closure"
}
Response shape
Always returns: total, returned, alerts
| Field | Type | Description |
|---|---|---|
total | number | Total number of alerts |
returned | number | Number of alerts in this response |
alerts | array | List of current park alerts |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of alerts"
},
"returned": {
"type": "number",
"description": "Number of alerts in this response"
},
"alerts": {
"type": "array",
"description": "List of current park alerts",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
],
"description": "Alert ID"
},
"park_code": {
"type": [
"string",
"null"
],
"description": "Park code for this alert"
},
"title": {
"type": [
"string",
"null"
],
"description": "Alert title"
},
"description": {
"type": [
"string",
"null"
],
"description": "Alert description"
},
"category": {
"type": [
"string",
"null"
],
"description": "Alert category"
},
"url": {
"type": [
"string",
"null"
],
"description": "Alert URL"
},
"last_indexed": {
"type": [
"string",
"null"
],
"description": "Last indexed timestamp"
}
}
}
}
},
"required": [
"total",
"returned",
"alerts"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"nps": {
"url": "https://gateway.pipeworx.io/nps/mcp"
}
}
}
See Getting Started for client-specific install steps.