Skip to main content
Glama

compare_fastest_laps

Compare two F1 drivers’ leading lap times—including sector times, top speeds, and deltas—for a chosen session to identify pace differences.

Instructions

Compare two drivers' fastest laps (OpenF1, 2023+): lap time, sector times, top speeds, deltas.

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>",
      "country": "<country>",
      "driver_a": "<driver_a>",
      "driver_b": "<driver_b>"
    },
    "name": "compare_fastest_laps"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
countryYes
driver_aYes
driver_bYes
session_nameNoQualifying

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden; it does establish the data source (OpenF1) and a year floor (2023+), and it lists the metrics returned, which substitutes partly for the absent output schema. It says nothing about failure behavior (driver not found, no lap set, session not held) or cost/latency, and never explicitly states this is a read-only lookup, which an agent must infer from "Compare".

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 front-loaded sentence with the verb and resource first, followed by a compact colon-list of what is compared. There is no filler, and the source/year qualifier sits in parentheses where it does not interrupt the main clause.

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 five-parameter tool with 0% schema coverage, no annotations, and no output schema, the description does well on return contents but leaves the caller guessing at input formats for country, driver identifiers, and session naming. An agent could guess plausibly and still fail validation or fetch nothing, so the definition is not complete enough for its complexity.

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

Parameters2/5

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

Schema description coverage is 0% and none of the five parameters is documented beyond a title. The description only loosely clarifies that driver_a and driver_b are the two drivers and that year is bounded to 2023+, leaving the format of "country" (name vs. code), the accepted identifier for drivers (three-letter code vs. full name), and the role of session_name with its Qualifying default entirely unexplained.

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 gives a specific verb ("Compare") and resource ("two drivers' fastest laps") and enumerates the compared dimensions (lap time, sector times, top speeds, deltas), so an agent can distinguish this from lap-listing siblings like get_driver_lap_times. It stops short of naming an alternative for when a single driver's laps are wanted, but the operation itself is unambiguous.

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?

The parenthetical "(OpenF1, 2023+)" implies a data-source and year-range precondition, which is useful context for when this tool is applicable. However, there is no explicit statement of when to choose this over get_historical_laps or get_driver_lap_times, and no mention of preconditions such as drivers having set a lap in the chosen session.

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