Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

plot_track_map

Draws a circuit map as a PNG: plot one lap's racing line coloured by speed or gear with numbered corners and DRS zones, or show every car's position and running order at the start of a chosen lap.

Instructions

Draw the circuit map. Two modes:

  1. Lap trace (default): the racing line of one lap coloured by speed or gear, with numbered corners, DRS zones and the direction of travel.

  2. Car positions (at_lap=N): where every car was on track at the moment the leader started lap N, with the running order listed.

Returns a PNG image.

Data source: FastF1 Live Timing position data + MultiViewer corners Coverage: 2018-present

Use for "show me the track", "where is the car fastest", "which gear through each corner", or "where was everyone when the safety car came out on lap 34".

Args: year: Season year (2018+) event: Race name or round number session: Session type (default "Q"; use "R"/"S" for at_lap) driver: Driver whose lap is traced (default: the session's fastest lap) lap: Lap number or "fastest" (default) color_by: "speed" (default), "gear" or "none" at_lap: Draw car positions at the start of this lap instead of a trace highlight: Up to 8 driver codes coloured in positions mode (default: the top three at that moment) show_corners: Number the corners (default True) show_drs: Highlight DRS zones on the trace (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 caption. Structured content has the lap used, DRS zones and, in positions mode, the running order.

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

Input Schema

NameRequiredDescriptionDefault
lapNofastest
yearYes
eventYes
at_lapNo
driverNo
sessionNoQ
color_byNospeed
show_drsNo
highlightNo
save_pathNo
show_cornersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4/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 load, and it does disclose real behaviour: the output is an image plus caption, the data source is FastF1 Live Timing plus MultiViewer corner data, coverage is 2018-present, and save_path has a side effect of writing to ./fastf1-exports/. It does not mention cost, latency, failure modes for missing sessions, or whether lap and at_lap conflict — meaningful gaps for a plotting call with no annotation coverage.

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?

Front-loaded with the two modes before the argument list, and each Args line is short and functional. The Args block partially restates defaults already encoded in the schema, which is mild redundancy, but it reads cleanly and nothing is buried.

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?

For an 11-parameter, no-annotation, no-output-schema tool, the description is close to self-sufficient: it covers modes, output artifacts, data provenance, coverage window and every parameter. It leaves the interaction between lap and at_lap, and the session default ('Q') versus the recommendation to use R/S in positions mode, slightly underspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does so for all 11 parameters: color_by enumerates 'speed'/'gear'/'none', lap accepts a number or 'fastest', at_lap changes the drawing mode rather than just filtering, highlight is capped at 8 codes and defaults to the top three, and save_path is disambiguated as either a flag or a string directory/full .png path. This is meaning the schema cannot convey on its own.

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 ('Draw the circuit map') and immediately splits the behaviour into two named modes — lap trace vs. car positions — with the default identified. An agent can tell what it produces (a PNG) and what goes into it. The one gap is that a sibling named plot_circuit exists and the description never says how this differs from it.

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 concrete natural-language triggers ('show me the track', 'which gear through each corner', 'where was everyone when the safety car came out on lap 34') and explains the mode switch via at_lap=N, including the hint to use session R/S in that mode. There are no explicit exclusions telling the agent when to prefer plot_circuit or plot_speed_trace instead, so it stops short of a 5.

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