Get Race Control
get_race_controlFetch race control events such as flags, safety cars, and incidents from OpenF1. Filter results by session, driver, category, flag, scope, or lap to analyze on-track decisions.
Instructions
Fetch race control events (flags, safety car, incidents) from OpenF1.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_race_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | No | str — optional, 1-50 chars, e.g., 'YELLOW', 'BLACK AND WHITE'. Normalized to uppercase. | |
| scope | No | str — optional, e.g., 'Track', 'Driver', 'Sector'. | |
| date_to | No | ||
| category | No | str — optional, e.g., 'SessionStatus', 'CarEvent', 'Drs', 'Flag', 'SafetyCar'. | |
| date_from | No | ||
| session_key | No | int | str — optional, positive int or 'latest'. Session identifier; use get_sessions to discover it. | |
| driver_number | No | int — optional, 1-99. Driver number for the season. | |
| lap_number_max | No | ||
| lap_number_min | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |