Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_session_results

Retrieve Formula 1 session classification results, including positions, drivers, teams, times and points, for a given year, event and session (2018-present).

Instructions

Get session classification/results.

Data source: FastF1 Live Timing Coverage: 2018-present

Args: year: Season year (2018+) event: Race name (e.g., "Monaco") or round number session: Session type — R, Q, S, SQ, FP1, FP2, FP3

Returns: Ordered classification with: position, driverCode, fullName, teamName, gridPosition, time/status, points

Example: get_session_results(2024, "Monaco", "R") → [ {"position": 1, "driverCode": "LEC", "fullName": "Charles Leclerc", "teamName": "Ferrari", "time": "1:45:12.345", ...}, ... ]

Note: Requires year >= 2018. For historical results use get_race_results_historical.

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

Input Schema

NameRequiredDescriptionDefault
yearYes
eventYes
sessionNoR

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • addedOutput schema / properties / result / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / result / items
      Removed value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}
    • removedOutput schema / properties / result / type
      Removed value: -"array"
  2. Addedv0.2.0
  3. Removed
  4. First observedv0.1.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 substantial work: it names the upstream data source (FastF1 Live Timing), declares coverage (2018-present), states a hard precondition (year >= 2018), and sketches the return shape. It does not mention whether calls hit a network/cache, expected latency, or failure behaviour for an out-of-range year, which keeps it from a 5.

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 line followed by labelled Data source / Coverage / Args / Returns / Note / Example sections, which is easy to scan. The worked example earns its place by showing the returned record shape, but it is somewhat verbose given an output schema already exists.

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 three-parameter read tool, the definition covers source, coverage window, parameter meaning, precondition, and the sibling alternative. The Returns block partly duplicates the existing output schema, while operational details (caching, error behaviour on a pre-2018 year) are absent; nothing critical for a correct call is missing.

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: 'event' is resolved from an ambiguous anyOf[string, integer] into 'race name (e.g., "Monaco") or round number', and 'session' is enumerated as R, Q, S, SQ, FP1, FP2, FP3. The year constraint (2018+) is restated with meaning rather than just repeated from the type. The only gap is that S vs SQ are not expanded, which is minor against the ambiguity resolved.

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 first line states a specific verb and resource ('Get session classification/results') and the coverage line (2018-present, FastF1 Live Timing) scopes it. The Note distinguishes it from get_race_results_historical, though it does not differentiate against near-neighbours such as get_qualifying_breakdown or get_race_pace, which also return session-scoped data.

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 Note gives an explicit exclusion plus the alternative to use instead: 'Requires year >= 2018. For historical results use get_race_results_historical.' That is a real routing rule rather than implied usage. It stops short of saying when to prefer this over the breakdown/pace siblings, so it is clear context rather than a full when/when-not map.

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