Skip to main content
Glama
Surya96t

fastf1-mcp-server

get_sector_times

Retrieve best sector times and theoretical best laps for Formula 1 drivers in specific sessions to analyze performance gaps between optimal and actual lap times.

Instructions

Get best sector times and theoretical best lap for each driver.

Data source: FastF1 Live Timing Coverage: 2018-present

Args: year: Season year (2018+) event: Race name or round number session: Session type (R, Q, S, FP1, FP2, FP3) driver: Optional driver code to filter (default: all drivers)

Returns: For each driver: bestS1, bestS2, bestS3, theoreticalBest, actualBest, gapSec (theoretical vs actual best)

Example: get_sector_times(2024, "Monaco", "Q") → [ {"driver": "VER", "bestS1": "0:00:22.123", "bestS2": "0:00:24.456", "bestS3": "0:00:21.789", "theoreticalBest": "0:01:08.368", "actualBest": "0:01:08.570", "gapSec": -0.202}, ... ]

Note: A negative gapSec means the theoretical best (sum of individual sector bests) is faster than the actual best lap — typical, since sector bests usually come from different laps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYes
eventYes
sessionYes
driverNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does well by disclosing key behavioral aspects: data source, temporal coverage, default behavior (all drivers when driver parameter is null), and the meaning of negative gapSec values. It doesn't mention performance characteristics like rate limits or caching behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with clear sections (purpose, data source, args, returns, example, note) and every sentence adds value. It's appropriately sized for a tool with 4 parameters and complex return data.

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?

Given the tool's complexity (4 parameters, detailed return structure) and the presence of an output schema, the description provides complete context: purpose, data constraints, parameter details, return format explanation with field meanings, and a practical example. The note about negative gapSec values adds important interpretation guidance.

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?

With 0% schema description coverage, the description fully compensates by providing detailed parameter semantics in the Args section: year range constraints (2018+), event format options (name or round number), session type examples, and driver parameter behavior (optional, default: all drivers). This adds substantial value beyond 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 clearly states the tool's purpose with specific verbs ('Get best sector times and theoretical best lap') and resources ('for each driver'), distinguishing it from sibling tools like get_fastest_laps or get_lap_times by focusing on sector-level analysis rather than complete lap times.

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 description provides clear context about when to use this tool by specifying the data source (FastF1 Live Timing) and coverage (2018-present), and the example shows a typical use case. However, it doesn't explicitly state when NOT to use it or name alternatives among sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Surya96t/fastf1-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server