Skip to main content
Glama
Surya96t

fastf1-mcp-server

get_lap_times

Retrieve detailed lap time data for a specific driver in a Formula 1 session, including sector times, tire compounds, and personal best information from FastF1 Live Timing.

Instructions

Get all lap times for a driver in a session.

Data source: FastF1 Live Timing Coverage: 2018-present

Args: year: Season year (2018+) event: Race name or round number session: Session type (R, Q, S, FP1, FP2, FP3) driver: Driver code (e.g., "VER") or number (e.g., "1") include_deleted: Include deleted lap times (default False)

Returns: List of laps with: lapNumber, lapTime, sector1, sector2, sector3, compound, tyreLife, isPersonalBest, deleted

Example: get_lap_times(2024, "Monaco", "R", "VER") → [ {"lapNumber": 1, "lapTime": "0:01:30.456", "compound": "MEDIUM", ...}, ... ]

Note: Deleted laps (e.g., track limits violations) are excluded by default. Set include_deleted=True to include them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYes
eventYes
sessionYes
driverYes
include_deletedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: data source (FastF1 Live Timing), coverage (2018-present), default exclusion of deleted laps, and the effect of include_deleted parameter. It also describes the return format with example values. It lacks details on rate limits or authentication needs, but covers core behavior adequately.

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

Conciseness5/5

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

The description is appropriately sized and front-loaded with the core purpose. Each section (Args, Returns, Example, Note) adds value without redundancy. Sentences are efficient, such as 'Get all lap times for a driver in a session' immediately stating the tool's function.

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

Completeness5/5

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

Given the complexity (5 parameters, no annotations, 0% schema coverage) and the presence of an output schema (implied by Returns section), the description is complete enough. It covers purpose, parameters with semantics, return format with example, and behavioral notes. No significant gaps remain for effective tool invocation.

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

Parameters5/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 fully. It successfully adds meaning beyond the schema by explaining each parameter: year (season year 2018+), event (race name or round number), session (session types with examples), driver (code or number examples), and include_deleted (default and purpose). The example further clarifies usage.

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

Purpose5/5

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

The description clearly states the specific action ('Get all lap times') and resource ('for a driver in a session'), distinguishing it from siblings like get_fastest_laps (which returns only fastest laps) or get_lap_telemetry (which returns telemetry data). It explicitly identifies the data source (FastF1 Live Timing) and coverage (2018-present), providing precise scope.

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?

The description provides clear context for when to use this tool (to retrieve lap times for a specific driver in a session) and includes a note about when to use include_deleted parameter. However, it does not explicitly compare to alternatives like get_fastest_laps or get_sector_times, which could help differentiate usage scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Surya96t/fastf1-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server