get_race_control_messages
Retrieves race control messages, penalties, investigations, and safety car/VSC/red flag periods to explain incidents, track-limit deletions, and strategy calls.
Instructions
Get race control messages, penalties, investigations and SC/VSC/red flag periods.
Data source: FastF1 Live Timing Coverage: 2018-present
Use this to answer "why was there a safety car", "who got a penalty", "what happened on lap 34", "how many laps were deleted for track limits", or to explain strategy calls that were triggered by a neutralisation.
Args:
year: Season year (2018+)
event: Race name or round number
session: Session type — R, Q, S, SQ, FP1, FP2, FP3 (default "R")
category: Optional filter on the FastF1 category — "Flag",
"SafetyCar", "Drs", "CarEvent", "Other" (case-insensitive)
driver: Optional driver code or number — only messages about that car
lap_start: Optional first lap to include (inclusive)
lap_end: Optional last lap to include (inclusive)
export_path: If True (or a directory / .csv path), write the full
message list to CSV and omit messages from the
response. Large lists (> FASTF1_MCP_AUTO_EXPORT_ROWS,
default 50) auto-export; narrow with the filters above
to keep them inline.
Returns: { "summary": { "totalMessages": 142, "byCategory": {"Flag": 80, "Other": 40, ...}, "neutralisations": [ {"type": "SC", "startLap": 34, "endLap": 37, "durationSec": 294.9, ...} ], "redFlags": 0, "penalties": [ {"lap": 12, "driver": "SAR", "penalty": "5 SECOND TIME PENALTY", "message": "FIA STEWARDS: 5 SECOND TIME PENALTY FOR CAR 2 ..."} ], "investigations": [...], "trackLimitsDeletions": {"HAM": 3, "VER": 1} }, "messages": [ {"time": "2024-07-07T14:35:12", "lap": 12, "category": "Flag", "flag": "YELLOW", "scope": "Sector", "sector": 7, "driver": null, "tag": null, "message": "YELLOW IN TRACK SECTOR 7"}, ... ] }
Note:
summary is computed over the whole session, before the
category/driver/lap filters are applied, so the neutralisation and
penalty overview is always complete. neutralisations comes from
the track-status feed (more reliable than parsing message text).
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_race_control_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| event | Yes | ||
| driver | No | ||
| lap_end | No | ||
| session | No | R | |
| category | No | ||
| lap_start | No | ||
| export_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||