get_alerts
Fetch active weather alerts for any US state using National Weather Service data to monitor severe conditions and stay informed about local warnings.
Instructions
MCP Tool: Get active weather alerts for a US state.
This tool is exposed to MCP clients and can be invoked by AI agents. It fetches from the NWS API and returns formatted alert information.
Args: state: Two-letter US state code (e.g. CA, NY, TX)
Returns: Formatted string of all active alerts, or a message if none found
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": {
"state": "<state>"
},
"name": "get_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |