Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_weather

Retrieve Formula 1 session weather data from 2018 onward—air/track temperatures, rain, humidity, and wind—to explain tyre behavior and strategy decisions.

Instructions

Get weather conditions over a session: air/track temperature, rain, wind.

Data source: FastF1 Live Timing (sampled once per minute) Coverage: 2018-present

Use for "was it raining", "how hot was the track", "did conditions change during qualifying", or to explain tyre behaviour and strategy.

Args: year: Season year (2018+) event: Race name or round number session: Session type — R, Q, S, SQ, FP1, FP2, FP3 (default "R") interval_minutes: Spacing of the returned samples (default 5, min 1). Summary stats always use every sample. export_path: If True (or a directory / .csv path), write the sampled series to CSV and omit samples.

Returns: { "summary": { "airTempC": {"min": 21.3, "max": 24.0, "avg": 22.6, "start": 21.3, "end": 23.9}, "trackTempC": {...}, "humidityPct": {...}, "windSpeedMs": {...}, "rainfall": true, "rainPeriods": [{"startMinute": 31.0, "endMinute": 48.0, "startLap": 18, "endLap": 27}], "durationMinutes": 96.0 }, "samples": [ {"sessionMinute": 0.0, "lap": null, "airTempC": 21.3, "trackTempC": 35.1, "rainfall": false, ...}, ... ] }

Note: sessionMinute is minutes since the session clock started (the timing feed starts before lights out, so lap 1 begins a few minutes in). lap is the lap the leader was on — races only.

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": "get_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
eventYes
sessionNoR
export_pathNo
interval_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.7/5.0
Behavior5/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 so: it names the data source (FastF1 Live Timing, sampled once per minute) and coverage window (2018-present), discloses a filesystem side effect (export_path writes a CSV and omits `samples`), and explains that interval_minutes downsamples the series while summary stats still use every sample. It also clarifies the non-obvious `sessionMinute` clock semantics, which prevents misreading sample offsets as laps.

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 purpose, then source/coverage, then usage, then args and returns in labeled blocks — easy to scan. The multi-line example Returns payload is the one indulgence, and since an output schema already exists it partially duplicates structured data rather than adding new information.

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 5-parameter tool with no annotations and low schema coverage, nothing essential is missing: input semantics, data provenance, sampling/aggregation behavior, export side effect, and the coordinates of the returned samples are all covered. The trailing note on `sessionMinute` and `lap` closes exactly the ambiguity an agent would otherwise hit when interpreting results.

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 this description must do all the work, and it documents all five parameters: year bounds (2018+), event accepting a race name or round number, the session code list with default "R", interval_minutes default/minimum plus its summary-stat caveat, and the polymorphic export_path (bool, directory, or .csv path). This is meaning well beyond the bare JSON types.

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 ("Get weather conditions over a session") and enumerates the exact measures returned: air/track temperature, rain, wind. No sibling tool in the catalog covers weather, and the scope (session-level, 2018-present) is stated up front so the agent can place it immediately.

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 trigger phrasing ("was it raining", "how hot was the track", "did conditions change during qualifying") and a downstream purpose (explaining tyre behaviour and strategy). It lacks any explicit when-not or pointer to an alternative tool, but the positive routing is clear and specific.

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