Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_championship_projection

Project drivers' and constructors' championship standings as if a race ended at a specified lap, showing live points, position changes, and whether the lead changed.

Instructions

Project the drivers' and constructors' championships as if the race finished in the running order at a given lap ("live" standings).

Data source: FastF1 Live Timing (running order) + Ergast (standings) Coverage: 2018-present

Use for "who was leading the championship on the road at lap 40", "how many points did Norris gain on Verstappen in Brazil", "did the championship lead change during the race", or the final standings after a race.

Args: year: Season year (2018+) event: Race name or round number session: "R" (Grand Prix, default) or "S" (sprint) after_lap: Running order to use (default: the final lap). On the final lap the official classification and points are used, so penalties and the fastest-lap point are exact. include_history: Also return the projected championship leader and margin after every lap (leadByLap).

Returns: { "round": 21, "session": "R", "lap": 71, "totalLaps": 71, "source": "official" | "projected", "baseline": {"afterRound": 20, "includesSprint": true}, "drivers": [ {"driver": "VER", "fullName": "Max Verstappen", "team": "Red Bull", "pointsBefore": 362.0, "racePosition": 1, "racePoints": 25.0, "projected": 387.0, "positionBefore": 1, "projectedPosition": 1, "change": 0}, ... ], "constructors": [ {"team": "McLaren", "pointsBefore": 566.0, "racePoints": 33.0, "projected": 599.0, "positionBefore": 1, "projectedPosition": 1, "change": 0}, ... ], "summary": {"leader": "VER", "leaderBefore": "VER", "marginToSecond": 62.0, "leadChanged": false, "constructorsLeader": "McLaren"}, "leadByLap": [{"lap": 1, "leader": "VER", "margin": 63.0}, ...] }

Note: Baseline standings are the official ones after the previous round; for a Grand Prix on a sprint weekend the sprint points of the same round are added. Mid-race projections use the race points table (25-18-15-12-10-8-6-4-2-1, sprint 8…1 or 3-2-1 in 2021) and, for 2019-2024 Grands Prix, +1 for the fastest lap so far if that driver is in the top 10. Half-points races (e.g. Spa 2021) are not modelled mid-race; the final-lap figures use the official points.

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

Input Schema

NameRequiredDescriptionDefault
yearYes
eventYes
sessionNoR
after_lapNo
include_historyNo

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 thoroughly: it discloses data sources (FastF1 Live Timing + Ergast), coverage window (2018-present), baseline construction, the exact points tables used mid-race, the +1 fastest-lap rule and its year/top-10 conditions, and the explicit limitation that half-points races like Spa 2021 are not modelled mid-race. That last caveat is the kind of failure-mode disclosure that prevents wrong conclusions.

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 and use cases followed by Args/Returns/Note sections that an agent can scan selectively. The verbose literal return-value example is largely redundant with the supplied output schema, which is the main editorial cost; the rest of the text earns its space.

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 high-complexity projection tool with five parameters and an output schema, the definition covers sources, baseline rules, points scales, sprint handling, fastest-lap points, and known non-modelled edge cases. An agent can invoke it correctly and interpret the projected vs official distinction without further docs.

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 documents all five parameters: year as 2018+, event as 'race name or round number' (resolving the anyOf string/integer ambiguity), session as 'R' or 'S', after_lap as defaulting to the final lap with the important consequence that final-lap figures use official classification, and include_history as adding leadByLap. This adds genuine meaning beyond a bare JSON schema.

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?

States a specific verb ('Project') and a specific resource (drivers' and constructors' championships) plus the counterfactual framing ('as if the race finished in the running order at a given lap'), which cleanly separates it from the official-standings siblings like get_driver_standings. The 'source: official | projected' distinction is defined in the description, so an agent knows exactly which class of answer this tool returns.

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?

Offers four concrete example phrasings ('who was leading the championship on the road at lap 40', 'how many points did Norris gain on Verstappen in Brazil') plus the final-standings case, which makes the intended context unmistakable. It does not explicitly name an alternative tool or state when to prefer get_driver_standings over this projection, so routing between overlapping tools is left partly to inference.

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