Weather Tool (Environment Canada)

The get_weather tool lets a chat agent answer weather questions with live data for Canadian cities — current conditions and any active weather alerts (warnings, watches, advisories, and special statements), with optional forecast and climate sections.

Data comes from Environment and Climate Change Canada (the MSC GeoMet public API). No API key, account, or extra configuration is required — enabling the tool on an agent is all it takes.

Enabling the Tool

  1. Open the chat agent for editing and go to the Tools tab
  2. Check get_weather in the tools list
  3. Save the agent

Once enabled, the agent will call the tool automatically when a visitor asks about weather, temperature, wind, or storm warnings.

Choosing What the Tool Returns

Below the tools list on the same tab, the Weather Tool section controls which data sections the tool returns to the agent:

Section Contents Default
Current conditions Temperature, condition, wind, humidity, pressure, visibility ✅ On
Warnings & alerts Active warnings, watches, advisories, and special statements, with issue time and a link ✅ On
7-day forecast Daily forecast text per period (e.g. "Tonight", "Saturday") Off
Hourly forecast Conditions for the next 12 hours Off
Sunrise & sunset Daily rise and set times Off
Yesterday's weather Yesterday's high, low, and precipitation Off
Normals & records Seasonal normal temperatures and record highs/lows for the date Off

Notes:

How the Agent Uses It

Prompting Tips

The tool's built-in description already teaches the agent the basics, but adding guidance to the agent's instructions helps it match your voice. For example:

When a visitor asks about weather, use the get_weather tool — never answer
from memory. Lead with any active warnings before giving conditions. If
there are no warnings and the visitor asked about them, say clearly that
none are in effect. Only Canadian locations are covered.

Troubleshooting