get_tyre_degradation
Estimates tyre degradation in seconds lost per lap of tyre age per stint and compound, with fuel-effect correction, so you can compare compounds, spot crossovers and explain pit timing.
Instructions
Estimate tyre degradation (seconds lost per lap of tyre age) per stint and per compound, with fuel-effect correction.
Data source: FastF1 Live Timing Coverage: 2018-present
Use for "how fast did the softs degrade", "which compound was best", "why did X pit so early", "when does the medium overtake the soft", or long-run analysis in practice (session="FP2").
Method: for each stint, keep accurate green-flag laps (no in/out laps,
no lap 1), drop outliers slower than 107% of the stint median, add
fuel_correction_sec_per_lap × (lap − 1) to remove the fuel-burn
effect, then fit lap time against tyre age. The slope is the
degradation rate.
Args:
year: Season year (2018+)
event: Race name or round number
session: "R" (default), "S", or a practice session ("FP1"-"FP3")
driver: Optional driver code to restrict to one driver
min_stint_laps: Minimum clean laps a stint needs to be fitted (default 6)
fuel_correction_sec_per_lap: Lap-time gain per lap from fuel burn
(default 0.06 s/lap; 0 disables)
export_path: If True (or a directory / .csv path), write the
per-stint table to CSV and omit stints.
Returns: { "method": {"fuelCorrectionSecPerLap": 0.06, "minStintLaps": 6}, "summary": { "compounds": { "MEDIUM": {"stints": 14, "medianDegSecPerLap": 0.051, "medianFreshTyrePaceSec": 93.42, "avgStintLaps": 21.3}, "HARD": {...} }, "compoundCrossovers": [ {"faster": "MEDIUM", "slower": "HARD", "freshPaceGapSec": 0.42, "crossoverTyreAge": 18} ], "lowestDeg": [{"driver": "HAM", "compound": "HARD", "degSecPerLap": 0.012}, ...] }, "stints": [ {"driver": "VER", "stintNumber": 2, "compound": "HARD", "startLap": 18, "endLap": 57, "lapsUsed": 33, "tyreAgeStart": 1, "tyreAgeEnd": 40, "degSecPerLap": 0.031, "rawSlopeSecPerLap": -0.029, "r2": 0.62, "freshTyrePaceSec": 93.1, "avgLapTimeSec": 94.2}, ... ] }
Note:
Degradation is an estimate — traffic, dirty air and push/lift
phases add noise; check r2 (closer to 1 = cleaner trend) and
lapsUsed. freshTyrePaceSec is the fitted, fuel-corrected lap
time at tyre age 1, comparable across stints and drivers.
crossoverTyreAge is the tyre age at which the faster-when-fresh
compound's higher degradation makes it slower than the other; it
is null (with a note) when that age is beyond the oldest tyre
run on the faster compound.
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>",
"event": "<event>"
},
"name": "get_tyre_degradation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| event | Yes | ||
| driver | No | ||
| session | No | R | |
| export_path | No | ||
| min_stint_laps | No | ||
| fuel_correction_sec_per_lap | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||