Skip to main content
Glama

Get Laps

get_laps

Fetch detailed lap-by-lap F1 session data from OpenF1, filtered by session, driver, lap number, lap time, or sector times to analyze race and qualifying performance.

Instructions

Fetch detailed lap-by-lap data for an F1 session from OpenF1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
date_toNo
date_fromNo
lap_numberNoint — optional, >= 1. Exact lap number (do not combine with lap_number_min/max).
session_keyNoint | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it.
i1_speed_maxNo
i1_speed_minNo
i2_speed_maxNo
i2_speed_minNo
st_speed_maxNo
st_speed_minNo
driver_numberNoint — optional, 1-99. Driver number for the season.
lap_number_maxNo
lap_number_minNo
lap_duration_maxNo
lap_duration_minNo
duration_sector_1_maxNo
duration_sector_1_minNo
duration_sector_2_maxNo
duration_sector_2_minNo
duration_sector_3_maxNo
duration_sector_3_minNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. Beyond the word 'Fetch' implying a read, it discloses nothing about pagination, result limits, permission/auth needs, or default scoping for unfiltered queries on a 21-parameter tool. The output schema softens the return-value gap but not the rest.

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?

A single front-loaded sentence with no wasted words and the resource stated first. It is structurally clean, though its terseness borders on under-specification rather than optimal economy.

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

Completeness2/5

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

For a 21-parameter, annotation-free query tool, one generic sentence is far too thin. The presence of an output schema excuses it from explaining return values, but nothing addresses how to combine or select among the many filters, when session_key is effectively required, or how this differs from sibling tools.

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

Parameters1/5

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

Schema description coverage is only 14% (roughly 3 of 21 parameters documented), and the description adds no meaning for any filter parameter. It does not explain the speed/sector/duration min-max pairs, the lap_number vs lap_number_min/max exclusivity, or the driver_number/date filtering, leaving most parameters semantically opaque.

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?

States a specific verb and resource ('Fetch detailed lap-by-lap data for an F1 session from OpenF1'), which is clear. However, it does not differentiate from siblings such as get_stints or get_pit_stops, which also return lap-derived session data, so an agent gets no routing signal from the description alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites (e.g., discovering session_key via get_sessions, which the schema hints at), and no explicit alternatives among the many sibling tools. The only context is the implied 'for an F1 session' scope.

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