Skip to main content
Glama

get_gaps

Retrieves each driver's gap to the race leader and car ahead in seconds at the start of every lap (1–4 drivers, OpenF1 2023+), helping show closing rates, undercuts, or a growing lead.

Instructions

Gap to the race leader and to the car ahead, in seconds, at the start of each lap for 1-4 drivers (OpenF1, 2023+). Use it to show who was closing, an undercut working, or a lead growing. every = lap step.

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>",
      "drivers": "<drivers>"
    },
    "name": "get_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
everyNo
countryYes
driversYes
session_nameNoRace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden, and it does disclose real traits: units (seconds), sampling point (start of each lap), a source/data-availability constraint (OpenF1, 2023+), and a driver-count limit of 1-4. It says nothing about the response shape (per-driver vs per-lap records), error conditions, or what happens outside the 2023+ window, which matters for a tool with no output schema.

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?

Three short sentences, front-loaded with what is measured and its units, followed by when to use it and one parameter hint. There is no filler and nothing is buried.

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

Completeness3/5

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

With no annotations, no output schema, and zero schema coverage on 5 parameters, the description should compensate more than it does — the country and session_name inputs are the biggest risk of a mis-call. What it does cover (purpose, units, sample point, data source, one parameter) is accurate and useful, so it is adequate but visibly short of complete.

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% across 5 parameters, and the description only clarifies two of them loosely: '1-4 drivers' constrains the drivers array and 'every = lap step' explains every. Year format, country (name vs code, which is a genuine ambiguity), and session_name's valid values and default semantics are left entirely undocumented.

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 names a specific measurement (gap to race leader and to the car ahead, in seconds, sampled at lap start) and bounds it to 1-4 drivers and 2023+ OpenF1 data. That is far more specific than a title restatement, though it never names a sibling tool to contrast with (e.g. detect_undercuts, get_driver_lap_times) even while evoking an undercut use case.

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 sentence 'Use it to show who was closing, an undercut working, or a lead growing' gives concrete analytical situations where this tool is the right choice. It stops short of exclusions or explicit routing — it does not say to use get_driver_lap_times or detect_undercuts instead in any circumstance.

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