Skip to main content
Glama

f1_head_to_head_pace

Read-onlyIdempotent

Compare two F1 drivers' lap-time pace in a session by returning median lap times with pit-out and slow outliers removed, plus delta and the faster driver.

Instructions

Compare lap-time pace distribution between two drivers in a session.

Args: session_key: OpenF1 session identifier. driver_a: First driver's race number. driver_b: Second driver's race number.

Returns: data: {driver_a_avg_s, driver_b_avg_s, delta_s, faster_driver}. The "avg" values are median lap times after dropping pit-out laps and slow outliers (safety-car / in-laps). meta.estimated: true.

Input Schema

NameRequiredDescriptionDefault
driver_aYesFirst driver's race number.
driver_bYesSecond driver's race number.
session_keyYesOpenF1 session identifier.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, open-world operation. The description adds useful methodological context beyond the annotations: medians are used after dropping pit-out laps and slow outliers such as safety-car or in-laps, and meta.estimated is true.

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?

The description is front-loaded with the core comparison purpose and then uses compact Args/Returns sections. The Args section largely repeats schema descriptions, but the overall text remains efficient and easy to scan.

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?

The tool has a simple three-parameter input, full schema coverage, annotations, and an output schema. The description adds the important estimation caveat and filtering methodology, making it sufficiently complete for an agent to invoke and interpret the result, though sibling differentiation is still missing.

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%, so the input schema already documents all three parameters. The description repeats the schema meanings for session_key and driver race numbers without adding meaningful input semantics beyond what is already structured.

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 states a specific verb and resource: compare lap-time pace distribution between two drivers in a session. It is clear enough to distinguish the operation from generic lap-time retrieval, but it does not explicitly differentiate itself from the sibling f1_race_pace_compare tool.

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?

The description explains what the tool does but gives no guidance on when to use it versus alternatives such as f1_race_pace_compare, f1_get_lap_times, or f1_qualifying_analysis. There are no exclusions, prerequisites, or scenario-based routing cues.

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