Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_drs_zones

Detect a circuit's DRS zones from FastF1 telemetry, including where each zone opens and closes, its length, and nearby corners for a given year, event, and session.

Instructions

Detect the DRS zones of a circuit: where each zone opens and closes, its length, and the corners around it.

Data source: FastF1 Live Timing telemetry (DRS flap channel) Coverage: 2018-2025 (DRS was replaced by active aero from 2026)

Zones are inferred from where the DRS flap was actually open on up to 8 reference laps: the fastest laps of the top drivers, or in a race the laps with the most DRS use (DRS only opens within one second of the car ahead, so fastest race laps are often set without it). Qualifying (default) is the best source: drivers may use DRS in every zone on every flying lap.

Args: year: Season year (2018+) event: Race name or round number session: Session type (default "Q"; R, S, SQ, FP1-FP3 also work)

Returns: { "lapLengthM": 5412, "referenceLaps": 8, "zones": [ {"zone": 1, "startM": 4870, "endM": 5390, "lengthM": 520, "afterCorner": "T14", "beforeCorner": "T1", "seenOnLaps": 8}, ... ] }

Note: Distances are metres from the start/finish line along the reference laps. startM is where drivers opened the flap, which is at or just after the official activation point. afterCorner / beforeCorner need circuit corner data and are null when it is unavailable.

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

Input Schema

NameRequiredDescriptionDefault
yearYes
eventYes
sessionNoQ

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 well: it names the data source (FastF1 Live Timing DRS flap channel), discloses that zones are inferred rather than official, explains the up-to-8-reference-lap sampling strategy, and warns that afterCorner/beforeCorner are null when circuit corner data is unavailable.

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 the purpose, then source, coverage, method, args and notes in a logical order. The explicit Returns block duplicates the existing output schema and could be trimmed, and the methodology paragraph is longer than strictly necessary, but nothing is off-topic.

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?

An output schema exists, yet the description still adds the essential caveats (inferred zones, null corners, metres from start/finish, startM at-or-just-after the official activation point) that make results interpretable. Given three simple parameters, nothing an agent needs to call or read results correctly 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%, but the description documents all three parameters: year as '2018+', event as 'Race name or round number' (resolving the ambiguous string-or-integer anyOf in the schema), and session with the default 'Q' plus the accepted alternatives R, S, SQ, FP1-FP3.

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 and resource: 'Detect the DRS zones of a circuit', and enumerates the returned facts (open/close points, length, surrounding corners). This is clearly distinct from siblings like get_circuit_info or get_lap_telemetry, so an agent can pick it without opening the schema.

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 usage context: qualifying is the best/default source because drivers may use DRS in every zone, and races require a different lap-selection heuristic. Coverage bounds (2018-2025, DRS replaced by active aero from 2026) implicitly exclude later seasons. It stops short of naming alternative sibling tools for related needs, so no explicit when-not routing.

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