Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

plot_tyre_strategy

Visualise Formula 1 race or sprint tyre strategies as horizontal stint bars coloured by compound in finishing order and return a PNG image.

Instructions

Plot every driver's tyre strategy as horizontal stint bars coloured by compound, in finishing order. Returns a PNG image.

Use when the user asks to "show the strategies", "visualise the stints" or compare 1-stop vs 2-stop plans at a glance.

Args: year: Season year (2018+) event: Race name or round number session: "R" (default) or "S" (sprint) 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_tyre_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
eventYes
sessionNoR
save_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.3/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 meaningful work: it discloses the output artefact (PNG), and crucially the filesystem side effect of save_path plus its default export directory. It does not cover failure modes, session-data prerequisites, or whether figure generation is slow for large sessions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two front-loaded sentences establish what is produced and when to use it, followed by a compact Args block. Every line carries information; nothing is redundant with the name or schema.

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 four-parameter visualisation tool with no output schema and no annotations, the description covers output format, parameter meanings, and the export side effect. Remaining gaps are modest: no mention of prerequisites (loaded session/cache) or behaviour when data is unavailable for the requested event.

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%, yet the Args block fully compensates: it explains each parameter's meaning and accepted form, including year bound (2018+), event as race name OR round number, session codes "R"/"S" with the default, and the dual boolean/string semantics of save_path with its default path. This adds real meaning beyond the bare JSON schema.

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 names a specific verb and artifact ("Plot every driver's tyre strategy as horizontal stint bars coloured by compound, in finishing order") and states the return type (PNG image), which distinguishes it from the data-oriented plot siblings. It stops short of explicitly naming an alternative such as get_stint_analysis, so an agent must infer that this is the visual variant.

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 concrete when-to-use triggers, quoting the phrasings a user might employ ("show the strategies", "visualise the stints") and the analytical intent (compare 1-stop vs 2-stop plans at a glance). No when-not conditions or named alternatives are provided, but the context is clear enough for selection.

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