Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_driver_info

Retrieve Formula 1 driver biographical details, including name, code, nationality, birth date, and number, by Ergast driver ID or season to enrich race analysis.

Instructions

Get driver information.

Data source: Ergast API (via FastF1) Coverage: 1950-present

Args: driver_id: Ergast driver ID (e.g., "max_verstappen", "hamilton") If None, returns all drivers year: Filter to drivers who raced in this season

Returns: Driver info: driverId, code, givenName, familyName, dateOfBirth, nationality, permanentNumber

Note: Use get_session_results to find driver codes, then use this for biographical details.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_driver_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
driver_idNo

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.1/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 well: it names the data source (Ergast API via FastF1), the coverage window (1950-present), and the important default that a null driver_id returns all drivers. It omits any mention of rate limits, caching, or result-size behavior for the all-drivers case, which is the main remaining gap.

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?

Front-loaded with the one-line purpose, then structured into Data source, Coverage, Args, Returns, and Note blocks that are each one or two lines and easy to scan. The Returns block partially duplicates the output schema, but it is short and does not pad the definition.

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?

An output schema exists, so the description is not obligated to explain return values, and it is otherwise complete for a two-parameter read-only lookup: source, coverage, per-parameter meaning, and default behavior are all present. Only edge-case behavior for the unfiltered all-drivers query is left undefined.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 does for both parameters: driver_id is explained as an Ergast-style ID with concrete examples ("max_verstappen", "hamilton") plus null semantics, and year is defined as filtering to drivers who raced that season. It does not explain how the two parameters interact when both are supplied.

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?

States a specific verb and resource ("Get driver information") and enumerates the returned attributes (driverId, code, givenName, familyName, dateOfBirth, nationality, permanentNumber), so the agent knows this is a biographical lookup rather than a results query. It also notes that omitting driver_id returns all drivers, which signals the unfiltered-list behavior without naming a sibling.

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 a concrete workflow: "Use get_session_results to find driver codes, then use this for biographical details," which tells the agent both the upstream prerequisite and the intended use case. There are no explicit exclusions (e.g., when to prefer list_drivers), so it stops short of full when/when-not guidance.

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