Skip to main content
Glama

get_speed_trace

Retrieves a driver’s fastest-lap speed profile—top/minimum speed, throttle, braking, and DRS use—and compares a second driver’s lap by sector times, speed trace, and gap changes.

Instructions

Car data for a driver's fastest lap (OpenF1, 2023+): top and minimum speed, full-throttle and braking share, DRS use. With driver_b it also compares the two laps: official sector times (exact), a 40-point speed trace with the running time gap (estimated from speed data), and up to 3 tenths of the lap where the gap moved most (approximate).

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

Input Schema

NameRequiredDescriptionDefault
yearYes
countryYes
driver_aYes
driver_bNo
session_nameNoQualifying

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it names the data source (OpenF1, 2023+ coverage constraint) and explicitly grades the reliability of each output as exact, estimated, or approximate — important because the gap is inferred from speed data. It omits auth/rate-limit behavior and whether the tool errors when a driver did not set a lap, which keeps it below 5.

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?

Two sentences, front-loaded with the core purpose before the conditional comparison branch. Parenthetical qualifiers are dense but each one (exact/estimated/approximate) earns its place. Minor cost: the second sentence is long and stacked with clauses.

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?

There is no output schema and no annotations, so the description must describe returns itself; it lists the metrics and the 40-point trace and 3-tenth gap segments reasonably well. Gaps remain: no units or format for speeds, no explanation of session_name/country inputs, and no behavior specified for the single-driver vs comparison return shape difference beyond 'it also compares'.

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 coverage is 0%, so the description must compensate. It explains driver_a as the subject and driver_b's semantic effect (enables pairwise comparison), and year's role via the '2023+' hint. It says nothing about country, driver_b's null default, or why session_name defaults to Qualifying, so half the required parameters remain 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?

States a specific verb and resource: car telemetry for a driver's fastest lap, plus a comparison mode when driver_b is supplied. The metrics returned (top/min speed, full-throttle and braking share, DRS use, sector times, speed trace) are enumerated. It does not, however, distinguish itself from the sibling compare_fastest_laps, leaving that routing decision to the agent.

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 conditional mode is made explicit: 'With driver_b it also compares the two laps', which tells the agent how to get comparison output from this single tool. But there is no when-to-use vs when-not guidance, no mention of the sibling compare_fastest_laps, and no prerequisites such as which sessions or countries are valid.

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