Skip to main content
Glama

f1_get_lap_times

Read-onlyIdempotent

Retrieve lap times for any driver in a given F1 session. Specify the session and driver number to get lap-by-lap data with pagination.

Instructions

Return lap times for a driver in a specific F1 session.

Args: session_key: OpenF1 session identifier. driver_number: Driver's race number (e.g. 1 for Verstappen). limit: Max laps to return, 1..200 (default 100 — covers most full races). offset: Number of laps to skip for paging (default 0).

Returns: data.laps: page of lap objects with lap_number and lap_duration. OpenF1 does not put compound/tyre_life here — those live on the stints endpoint. data.pagination: {total, count, offset, limit, has_more, next_offset}. meta.source: adapter that served the data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax laps to return, 1..200 (default 100 — covers most full races).
offsetNoNumber of laps to skip for paging (default 0).
session_keyYesOpenF1 session identifier.
driver_numberYesDriver's race number (e.g. 1 for Verstappen).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
metaNo
errorNo
Behavior5/5

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

Annotations declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds significant behavioral context: it explains the return structure (laps with lap_number and lap_duration), pagination details, and explicitly states what is NOT included (tyre data). This goes well beyond the annotations.

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 well-structured with Args and Returns sections. It is concise, with each sentence providing necessary information. No redundancy.

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 annotations, 100% schema coverage, and presence of an output schema, the description explains the return format, pagination, and even notes what the API does NOT return (tyre data). It is complete and leaves no ambiguity for an AI agent.

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 100%, so the schema already documents each parameter. The description restates parameter info and adds minor context (default limit covers most races, offset for paging). This adds some but not substantial value beyond the schema.

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 'Return lap times for a driver in a specific F1 session.' It uses a specific verb-resource pair and differentiates from sibling tools like f1_get_race_results or f1_tyre_degradation, which cover different aspects of F1 data.

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 specifies parameters and provides context on pagination (limit, offset). It implicitly advises against using this for tyre data by stating that compound/tyre_life live on the stints endpoint. However, it does not explicitly state when not to use this tool or suggest alternatives.

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/Ninjabeam20/SportIQ-MCP'

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