f1_get_sessions
Retrieve Formula 1 sessions for a championship year, filtering by country or session type, or get the most recently completed session.
Instructions
Return F1 sessions for a given year, optionally filtered by country or session name.
Args: year: Championship year (e.g. 2026). country: Optional country name to filter (e.g. "Netherlands"). session_name: Optional session name to keep, case-insensitive (e.g. "Race", "Qualifying", "Sprint"). latest_completed: When true, return only the single session that ended most recently (greatest date_end before now, UTC) — e.g. with session_name="Race", the latest finished Grand Prix.
Returns: data.sessions: list of session objects with session_key, session_type, date. meta.source: adapter that served the data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Championship year (e.g. 2026). | |
| country | No | Optional country name to filter (e.g. "Netherlands"). | |
| session_name | No | Optional session name to keep, case-insensitive (e.g. "Race", "Qualifying", "Sprint"). | |
| latest_completed | No | When true, return only the single session that ended most recently (greatest date_end before now, UTC) — e.g. with session_name="Race", the latest finished Grand Prix. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| error | No |