get_race_control
Retrieve a session's race control log, including safety cars, flags, penalties and investigations with lap numbers, plus a summary of message counts.
Instructions
What race control did in a session (OpenF1, 2023+): safety cars, virtual safety cars, red and yellow flags, penalties, investigations, session start and finish, with lap numbers, plus a summary of counts. Set all_messages for every message (except DRS). country = any country, city, circuit or GP name.
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>",
"country": "<country>"
},
"name": "get_race_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| country | Yes | ||
| all_messages | No | ||
| session_name | No | Race |