Skip to main content
Glama
OpenF1 MCP Server

OpenF1 MCP Server

by ragulhari

Compare fastest laps

compare_fastest_laps
Read-onlyIdempotent

Compare lap times, sector performances, speeds, and theoretical best laps for 2–10 drivers in a session to see deltas against the leading driver.

Instructions

Compare the fastest lap of 2 to 10 drivers in a session: lap time, sectors, speeds, best sectors, theoretical best lap and delta to the fastest driver.

Input Schema

NameRequiredDescriptionDefault
session_keyYesSession identifier or "latest".
driver_numberYesDriver numbers to compare.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by enumerating the computed outputs (theoretical best lap, delta to fastest), which matters because no output schema exists. It stops short of disclosing edge cases such as drivers with no valid lap time.

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?

A single sentence with the scope and the returned metrics front-loaded and no filler. Every clause (driver count, session, output fields) carries information.

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?

With no output schema, the description usefully enumerates what comes back, which is the main completeness need here. It is nearly complete for a simple two-parameter read tool, missing only behavior for invalid or missing lap data.

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% and both parameters are documented there, including the 2–10 item bounds. The description's '2 to 10 drivers in a session' restates the schema constraints rather than adding meaning, so the baseline 3 applies.

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?

Specific verb ('Compare') plus resource ('fastest lap') and an explicit enumeration of the compared metrics (lap time, sectors, speeds, best sectors, theoretical best lap, delta). An agent can tell this is an analytical comparison tool rather than a raw data fetch like get_laps, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied by 'in a session' and the 2-to-10 driver range, which tells the agent this is for multi-driver head-to-head analysis. However, there is no explicit statement of when to prefer this over get_laps, get_session_result, or get_tyre_strategy, and no prerequisite/error guidance.

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