Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

plot_circuit

Draw an F1 circuit offline from stored outlines without a session download, or pass a year to render all circuits on that season's calendar.

Instructions

Draw a real F1 circuit from stored outline data — works offline, no session download needed. With only year, draws every circuit on that season's calendar as a sheet of small maps.

Data source: bundled circuit outlines (bacinger/f1-circuits, MIT), covering every F1 circuit used since 2018 plus classic venues.

Use for "show me the Monaco track", "what does Suzuka look like", "draw the 2026 calendar circuits", or when FastF1 telemetry is not available. For speed/gear-coloured maps, corners and DRS zones from a real lap, use plot_track_map.

Args: circuit: Grand Prix name, circuit name, location or nickname ("Monaco", "British", "COTA", "Spa", "Yas Marina"), or a round number together with year. year: Season. Disambiguates names whose venue changed (the Spanish GP moves to Madrid in 2026) and is needed for round numbers. On its own (no circuit), draws that season's calendar (2020-2026 stored). 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 circuit name, location, official length, direction of racing, first Grand Prix and altitude (or the season's circuit list).

Note: Maps are drawn north-up from geographic coordinates (official F1 maps are often rotated). The outline starts on the start/finish line and the arrow shows the direction of racing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "plot_circuit"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
circuitNo
save_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are supplied, and the description carries the full burden well: it discloses the data source and offline behavior ("works offline, no session download needed"), the side effect of save_path writing a PNG to an export directory, and returns as an image plus caption with structured content. It even warns about a surprising rendering convention (north-up, unlike official rotated F1 maps) and how to read the outline (start/finish line, direction arrow).

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 sentence, then clearly labelled Data source / Use cases / Args / Returns / Note sections, so an agent can scan to what it needs. Some material is a touch verbose (the list of sample user phrasings, the full provenance citation), but nothing is redundant with structured fields since none document these params.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations, zero schema description coverage and no output schema, the definition fills every gap an agent needs: what it draws, where the geometry comes from, which parameters are optional and how they interact, what comes back (image plus caption and structured circuit fields), and how to read the image. Nothing material is missing for correct invocation.

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: circuit accepts Grand Prix names, circuit names, locations and nicknames with concrete examples ("COTA", "Spa", "Yas Marina") or a round number with year; year is explained as a disambiguator (Spanish GP moving to Madrid in 2026) and as a standalone calendar mode for 2020-2026; save_path is explained as either a boolean or a directory/full .png path.

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?

Opens with a specific verb and resource: "Draw a real F1 circuit from stored outline data", plus an explicit scope variant (year-only draws a sheet of small maps). It also names the sibling it is NOT (plot_track_map, for speed/gear-coloured lap maps), so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete trigger phrases ("show me the Monaco track", "draw the 2026 calendar circuits") and an explicit fallback condition: use it "when FastF1 telemetry is not available". It routes the agent away with a stated alternative: "For speed/gear-coloured maps, corners and DRS zones from a real lap, use plot_track_map".

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