Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

plot_speed_trace

Plot a driver’s speed-versus-distance lap trace or overlay two drivers with a cumulative time-gap panel, returning a PNG for telemetry comparison.

Instructions

Plot a speed-vs-distance trace for one driver's lap, or overlay two drivers with a cumulative time-gap panel underneath. Returns a PNG image.

Use when the user asks to "show", "plot", "chart" or "visualise" telemetry, or to see where one driver is faster than another.

Args: year: Season year (2018+) event: Race name or round number session: Session type (R, Q, S, SQ, FP1, FP2, FP3) driver: Driver code (e.g. "VER") driver2: Optional second driver to overlay lap: Lap number or "fastest" (default) — applied to each driver show_corners: Mark numbered corners (default True; skipped silently if circuit data is unavailable) show_drs: Shade where driver's DRS flap was open on this lap (default True) save_path: If True, also write the PNG to the export directory (default ./fastf1-exports/); a string is a directory or a full .png path.

Returns: An image plus a one-line caption. Structured content carries the lap numbers/times and savedTo when saved.

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>",
      "event": "<event>",
      "session": "<session>",
      "driver": "<driver>"
    },
    "name": "plot_speed_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
lapNofastest
yearYes
eventYes
driverYes
driver2No
sessionYes
show_drsNo
save_pathNo
show_cornersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

There are no annotations, so the description carries the full burden. It does disclose useful behavior: the PNG return, structured content with lap numbers/times and savedTo, silent skipping of corners when circuit data is unavailable, DRS shading bound to `driver`, and the default export directory. It says nothing about data availability/caching, failure modes for an unknown lap or driver, or cost of building the plot, which matters for a FastF1-backed tool.

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?

Structure is front-loaded: purpose paragraph, then a trigger sentence, then a compact Args block and a Returns block. For 9 parameters this length is justified; a few clauses (e.g. the parenthetical on show_corners) could be tightened, but nothing is filler.

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?

No output schema, no annotations, and 9 parameters mean the description has to do a lot, and it does cover return shape and the main parameter meanings. It still leaves gaps on error/precondition behavior (what happens when session data isn't cached, lap number out of range, unknown driver2) and doesn't relate the tool to any sibling.

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, and its Args block does explain all 9 parameters, including non-obvious semantics such as `lap` applying to each driver and `save_path` accepting a directory or a full .png. That's genuine value, but much of it restates names and defaults the schema already fixes, and enum-like values (session codes, driver codes) are given only as brief examples.

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 concrete verb+resource ('Plot a speed-vs-distance trace') and states both operating modes: a single driver's lap, or two drivers overlaid with a cumulative time-gap panel. It also states the output type (PNG). It never names a sibling or says how it differs from compare_telemetry or get_lap_telemetry, so differentiation is left implicit.

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?

It gives a trigger phrase set ('show', 'plot', 'chart', 'visualise' telemetry, or 'see where one driver is faster than another'), which is a clear when-to-use signal. It offers no exclusions or alternatives, so an agent can't tell from the description alone when to prefer a numeric telemetry tool over a chart.

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