Skip to main content
Glama

get_historical_laps

Retrieve detailed lap-by-lap data from 2018 onward, including lap times, tyre compounds, stint pace and pit stops, for seasons where other F1 sources have no coverage.

Instructions

Detailed laps for 2018 onward (FastF1, optional extra): every lap with time, tyre compound, tyre age, stint, pit in/out, position and whether it was neutralised, plus per-stint pace and degradation. Use it for seasons before 2023, where OpenF1 has nothing. race = round number, 'last' or a name like 'Monza'. The first load of a session takes 10-60 seconds. Needs: pip install "f1-mcp[fastf1]".

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>",
      "race": "<race>",
      "driver": "<driver>"
    },
    "name": "get_historical_laps"
  }
}

Input Schema

NameRequiredDescriptionDefault
raceYes
yearYes
driverYes
session_nameNoRace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full burden and does meaningful work: it names the underlying provider (FastF1 as an optional extra), discloses a 10-60 second first-load latency, and gives the install command required before the tool will function. What it omits is failure behavior — notably what happens for a year below 2018 or when the extra is not installed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense and front-loaded: the payload inventory comes first, then the usage rule, then the operational caveats. The mid-sentence line break is slightly awkward and the install instruction could be its own clause, but essentially every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no output schema and no annotations, the description is nearly self-sufficient: it characterizes the return shape in detail, states the temporal coverage limit, and warns about latency and the extra dependency. The remaining hole is that three of four parameters have no documented accepted formats.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and only partly does. It clarifies the polymorphic `race` parameter well (round number, 'last', or a name like 'Monza'), which is genuinely useful given the anyOf integer/string schema, but `year`, `driver`, and especially `session_name` (defaulting to 'Race') receive no semantic explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource and then enumerates the payload precisely: lap time, tyre compound, tyre age, stint, pit in/out, position, neutralisation flag, plus per-stint pace and degradation. The '2018 onward' and 'seasons before 2023' constraints give it a distinct scope, though it never acknowledges the similarly named sibling get_historical_lap_times, leaving a residual ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use it for seasons before 2023, where OpenF1 has nothing' is an explicit selection rule tied to a data-coverage boundary, which is exactly the kind of guidance an agent needs. It stops short of stating the inverse (which tool to reach for on 2023+ data), so the alternative routing is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.