Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

plot_position_chart

Plot lap-by-lap race positions for all drivers to visualize overtakes, pit-cycle shuffles, and recovery drives. Returns a PNG chart.

Instructions

Plot the lap-by-lap race position of every driver (a "race history" chart). Returns a PNG image.

Use when the user wants to see how the race unfolded, overtakes, pit-cycle shuffles or a driver's recovery drive.

Args: year: Season year (2018+) event: Race name or round number session: "R" (default) or "S" (sprint) highlight: Up to 8 driver codes drawn in colour (others are grey, all are labelled). Default: the podium finishers. 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.

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_position_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
eventYes
sessionNoR
highlightNo
save_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a decent job: it declares the return type (PNG image), the default highlight set, and the side effect of save_path including the default export directory. It omits failure modes (unknown event, pre-2018 seasons) and whether the image is returned inline or merely written to disk.

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 purpose, then usage, then a compact Args block with one line per parameter. The parenthetical "(a 'race history' chart)" is mild redundancy, but no sentence is padded or out of order.

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 a 5-parameter, zero-coverage, annotation-free tool with no output schema, the description covers every parameter and the return artifact. The remaining gap is operational context such as caching/network needs and error conditions when the requested session does not exist.

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 coverage is 0%, so the description must compensate and it does: year is bounded (2018+), event accepts a name or round number, session accepts "R"/"S" with the default stated, highlight is capped at 8 codes with grey-out behaviour and a podium default, and save_path's boolean-vs-string overload is explained. This is more meaning than the raw schema conveys.

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 ("Plot the lap-by-lap race position of every driver") plus the output type (PNG), so the agent knows exactly what production this is. It does not explicitly distinguish itself from plausible siblings like get_position_changes or plot_lap_times, leaving the agent to infer the boundary from names.

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?

The "Use when..." sentence gives concrete triggering scenarios: race unfolding, overtakes, pit-cycle shuffles, recovery drives. That is strong positive guidance, but there are no exclusions or named alternatives telling the agent when a data-returning sibling is a better fit.

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