Skip to main content
Glama

create_speed_trace_video

Render a vertical head-to-head video of two F1 drivers' fastest laps, with track map, live speed traces, and running gap. Returns the video path and beat sheet for narration.

Instructions

Render a vertical 1080x1920 head-to-head of two drivers' fastest laps (OpenF1, 2023+): both cars racing round the track map, speed traces drawing live and the running time gap. Returns the video path plus a beat sheet (start, official sector-by-sector gains, top speeds, result), so you can narrate it with add_narration. Needs ffmpeg.

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": "create_speed_trace_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
countryYes
driver_aYes
driver_bYes
session_nameNoQualifying
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does substantial work: it discloses the render format and resolution, the data-source/year restriction, the ffmpeg runtime dependency, and the return payload (video path plus a beat sheet containing start, sector gains, top speeds, result). Remaining unknowns are secondary — render duration, output directory, and overwrite behavior.

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?

One dense sentence that front-loads the deliverable and format, then folds in output payload and prerequisites. Every clause contributes; only the parenthetical data-range note slightly interrupts the flow.

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 output schema, the description correctly explains the return values and flags the ffmpeg requirement, which is essential for a render tool. However, for a six-parameter tool with zero schema coverage it omits the session selection and duration controls, which an agent needs to call it correctly.

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 0%, so all six parameters rely on the description. It clarifies driver_a/driver_b as the two compared drivers and implies year via '2023+', but session_name (defaulting to Qualifying) and duration_seconds are never mentioned, leaving two parameters that materially change the output undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and artifact: 'Render a vertical 1080x1920 head-to-head of two drivers' fastest laps', and lists exactly what appears in frame (track map, live speed traces, running gap). This is clearly distinguishable from siblings like get_speed_trace (data retrieval) and create_track_replay_with_beats (single-car replay).

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?

Gives a usable context: OpenF1 data, 2023+ only, and an explicit downstream step ('narrate it with add_narration') plus the ffmpeg prerequisite. It stops short of naming when to prefer a sibling (e.g. create_track_replay_with_beats or compare_fastest_laps) or when not to use it.

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