get_weather
Retrieve Formula 1 session weather data from 2018 onward—air/track temperatures, rain, humidity, and wind—to explain tyre behavior and strategy decisions.
Instructions
Get weather conditions over a session: air/track temperature, rain, wind.
Data source: FastF1 Live Timing (sampled once per minute) Coverage: 2018-present
Use for "was it raining", "how hot was the track", "did conditions change during qualifying", or to explain tyre behaviour and strategy.
Args:
year: Season year (2018+)
event: Race name or round number
session: Session type — R, Q, S, SQ, FP1, FP2, FP3 (default "R")
interval_minutes: Spacing of the returned samples (default 5, min 1).
Summary stats always use every sample.
export_path: If True (or a directory / .csv path), write the
sampled series to CSV and omit samples.
Returns: { "summary": { "airTempC": {"min": 21.3, "max": 24.0, "avg": 22.6, "start": 21.3, "end": 23.9}, "trackTempC": {...}, "humidityPct": {...}, "windSpeedMs": {...}, "rainfall": true, "rainPeriods": [{"startMinute": 31.0, "endMinute": 48.0, "startLap": 18, "endLap": 27}], "durationMinutes": 96.0 }, "samples": [ {"sessionMinute": 0.0, "lap": null, "airTempC": 21.3, "trackTempC": 35.1, "rainfall": false, ...}, ... ] }
Note:
sessionMinute is minutes since the session clock started (the
timing feed starts before lights out, so lap 1 begins a few
minutes in). lap is the lap the leader was on — races only.
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": {
"year": "<year>",
"event": "<event>"
},
"name": "get_weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| event | Yes | ||
| session | No | R | |
| export_path | No | ||
| interval_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||