get_live_intervals
Retrieve real-time gaps and intervals between Formula 1 drivers during sessions. Query live timing data from OpenF1 to analyze performance differences and track positions.
Instructions
Get real-time gaps and intervals between drivers from OpenF1.
Args: year: Season year (2023+, OpenF1 data availability) country: Country name (e.g., "Monaco", "Italy", "United States") session_name: Session name - 'Race', 'Qualifying', 'Sprint', 'Practice 1/2/3' (default: 'Race') driver_number: Optional filter by driver number (1-99)
Returns: IntervalsResponse with gap to leader and interval to car ahead
Example: get_live_intervals(2024, "Monaco", "Race") → All intervals during race get_live_intervals(2024, "Monaco", "Race", 1) → Verstappen's gaps
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_live_intervals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| country | Yes | ||
| session_name | No | Race | |
| driver_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year | |
| country | No | Country name | |
| intervals | Yes | List of interval data points | |
| session_name | No | Session name | |
| total_data_points | Yes | Total number of data points |