get_stint_analysis
Analyze tire stint data for Formula 1 races, providing per-driver stint details, pace calculations, and strategy summaries. Export to CSV for data analysis.
Instructions
Analyze tire stints for a race.
Data source: FastF1 Live Timing Coverage: 2018-present
Set export_path=True when the user mentions data analysis, notebooks,
pandas, ML, "save as CSV", "export the strategy data", or any downstream
processing — the full per-stint array is written to CSV. Large
responses (>50 stints, typical for full-grid races) also auto-export.
Args:
year: Season year (2018+)
event: Race name or round number
driver: Optional driver code to filter (default: all drivers)
export_path: If True, write the full per-stint array to a CSV in
the configured export directory (default
./fastf1-exports/, override via FASTF1_MCP_EXPORT_DIR)
and omit stints from the response. Pass a string for
a custom directory or .csv file path. The server
also auto-exports when the stint count exceeds
FASTF1_MCP_AUTO_EXPORT_ROWS (default 50).
Returns: Default (no export): { "summary": {...}, "stints": [{"driver": "LEC", "stintNumber": 1, ...}, ...] }
With export_path:
{
"summary": {...},
"exportPath": "/abs/path/to/get_stint_analysis_<...>.csv",
"rowCount": 45
}Note:
Only accurate laps are included in pace calculations.
Stint numbers match FastF1's internal stint counter.
Phantom lap-1 stints (single-lap entries with no recorded lap time,
paired with the lap-1 pit-stop artifact) are filtered out.
The summary.strategies array gives the 1-stop / 2-stop / compound
sequence per driver in a compact form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| event | Yes | ||
| driver | No | ||
| export_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||