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').
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 |