get_weather_alerts
Fetches real-time Environment Canada weather alerts by province, alert type, or search term, returning active warnings, watches, advisories, and statements.
Instructions
Fetches real-time weather alerts from Environment Canada.
Args: province: Two-letter Canadian province/territory code (e.g. 'ON', 'BC', 'AB', 'QC', 'NS', 'NB', 'MB', 'SK', 'PE', 'NL', 'YT', 'NT', 'NU'). alert_type: Type of alert filter ('warning', 'watch', 'advisory', 'statement'). search_query: Optional keyword to search in location names or alert description (e.g., 'Toronto', 'blizzard', 'fog'). language: Language for names and description ('en' for English, 'fr' for French). Default is 'en'.
Returns: JSON formatted string containing matching weather alerts. Each alert includes its 'status' (e.g. 'active', 'ended').
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": "get_weather_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | en | |
| province | No | ||
| alert_type | No | ||
| search_query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |