Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_corner_analysis

Analyze every numbered corner in a Formula 1 lap to compare apex speed, gear, braking point, and time gained or lost between two drivers.

Instructions

Corner-by-corner breakdown of a lap: apex (minimum) speed, gear, approach speed, exit speed and brake point for every numbered corner — and, with a second driver, where each one gains or loses time.

Data source: FastF1 Live Timing telemetry + MultiViewer circuit markers Coverage: 2018-present

Use for "where is Leclerc faster than Verstappen", "what's the slowest corner at Monaco", "who brakes later into turn 1", or "how much time does Norris lose in the final sector corners".

Args: year: Season year (2018+) event: Race name or round number session: Session type (R, Q, S, SQ, FP1, FP2, FP3) driver: Driver code (e.g. "LEC") driver2: Optional second driver code to compare against lap: Lap number or "fastest" (default) — applied to each driver

Returns: { "driver": {"code": "LEC", "lapNumber": 18, "lapTime": "..."}, "driver2": {"code": "VER", ...} | null, "corners": [ {"corner": "T1", "distanceM": 210.0, "driver": {"minSpeedKph": 98.5, "gear": 3, "entrySpeedKph": 290.1, "exitSpeedKph": 165.0, "brakeStartM": 92.0, "apexDistanceM": 215.0}, "driver2": {...}, "minSpeedDeltaKph": 2.1, "timeDeltaSec": -0.034}, ... ], "summary": { "slowestCorner": {"corner": "T6", "minSpeedKph": 48.2}, "fastestCorner": {...}, "driverGainsMost": [{"corner": "T10", "timeDeltaSec": -0.081}, ...], "driverLosesMost": [...], "totalCornerDeltaSec": -0.112 } }

Note: Deltas are driver − driver2: negative timeDeltaSec = driver was quicker through that corner; positive minSpeedDeltaKph = driver carried more apex speed. Each corner's window runs halfway to its neighbours (max ±150 m), so the corner deltas don't sum exactly to the lap-time delta (straights are excluded). Corner positions are approximate (hand-annotated circuit data).

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>",
      "session": "<session>",
      "driver": "<driver>"
    },
    "name": "get_corner_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
lapNofastest
yearYes
eventYes
driverYes
driver2No
sessionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.5/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 discloses the data source (FastF1 Live Timing + MultiViewer markers), coverage window (2018-present), delta sign conventions, the ±150 m corner-window rule, the fact that corner deltas will not sum to the lap delta, and that corner positions are hand-annotated and approximate. Missing only operational traits such as latency, caching, or failure modes for out-of-coverage years.

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?

The purpose is front-loaded in the first sentence, followed by source/coverage, usage examples, args, returns and caveats in a predictable order. The main inefficiency is the lengthy Returns block, which largely restates the output schema that already exists; the Notes section, by contrast, earns its space with delta-sign and window semantics.

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 six-parameter analysis tool with no annotations, the definition covers inputs, data provenance, coverage limits, delta sign conventions, and known approximation caveats, while the output schema handles return-shape detail. An agent could invoke this correctly without consulting anything else.

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%, yet the Args block defines every one of the six parameters: year bounds (2018+), event accepts a race name or round number, session enumerates R/Q/S/SQ/FP1-FP3, driver uses codes like 'LEC', driver2 is the optional comparison, and lap accepts a number or 'fastest' with the important clarification that it applies to each driver. This fully compensates for the bare 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?

The description names a specific resource and decomposition: 'Corner-by-corner breakdown of a lap' with apex/minimum speed, gear, approach speed, exit speed and brake point, plus per-corner time deltas for a second driver. That is clearly separable from siblings like get_sector_times, get_lap_telemetry, or compare_telemetry, and the example queries ('what's the slowest corner at Monaco') pin down the intent further.

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?

Four concrete example queries give a strong sense of when this tool is the right call, including both single-driver and head-to-head use. There is no explicit 'when not to use' or named alternative (e.g. compare_telemetry for full trace comparison), so it stops short of full routing guidance.

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