get_weather
Get current weather and forecasts for any location by latitude and longitude, including temperature, rain, sunshine, wind, humidity, and hourly/daily data. Use it to plan outdoor activities and check travel conditions.
Instructions
Retrieves weather forecast for a location (temperature, rain, sunshine).
Get current weather conditions for any location in Switzerland (or worldwide).
Examples:
"What's the weather in Zürich?" → latitude: 47.3769, longitude: 8.5417
"Weather at destination" → Use coordinates from journey endpoint
"Is it raining in Bern?" → Check precipitation field
Provides:
Current temperature (°C)
Weather condition (clear, cloudy, rain, snow)
Precipitation amount (mm)
Wind speed (km/h)
Humidity (%)
Hourly and daily forecasts
Enriched with weather interpretation and formatting
Data Source: Open-Meteo API (free, no API key required)
Performance: < 200ms
Use this tool when:
User asks about weather conditions
Planning outdoor activities
Checking if weather affects travel
Combined with journey planning
Args: latitude: Latitude in decimal degrees (e.g., 46.9479 for Bern) longitude: Longitude in decimal degrees (e.g., 7.4474 for Bern) forecast_days: Number of forecast days (1-16, default: 7) include_hourly: Include hourly forecasts (default: true) timezone: Timezone for timestamps (e.g., 'Europe/Zurich', default: 'auto')
Returns: Dictionary containing: - current (dict): Current weather with temperature, weather_code, wind_speed, humidity - current_weather (dict): Enriched current conditions with interpretation, formatting - hourly (list[dict] | None): Hourly forecasts if include_hourly=True - daily (list[dict]): Daily forecasts with min/max temps, precipitation, weather codes - location (dict): Location metadata with coordinates and timezone
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | ||
| timezone | No | auto | |
| longitude | Yes | ||
| forecast_days | No | ||
| include_hourly | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||