Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

get_circuit_info

Retrieve Formula 1 circuit details by circuit ID or season, including name, locality, country, and coordinates for race analysis and track lookup.

Instructions

Get circuit information.

Data source: Ergast API (via FastF1)

Args: circuit_id: Ergast circuit ID (e.g., "monaco", "silverstone") If None, returns all circuits year: Filter to circuits used in this season

Returns: Circuit info: circuitId, circuitName, locality, country, lat, long

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

Input Schema

NameRequiredDescriptionDefault
yearNo
circuit_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

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose a meaningful trait beyond structure — the data source (Ergast API via Fast1) — which signals historical coverage and no authentication requirement, but it says nothing about error handling, caching, rate limits, or whether an unknown circuit_id yields an empty result or an error.

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 a one-line purpose, then a structured Args/Returns block that is easy to scan. The Returns listing is partly redundant because an output schema exists, but it is short and the data-source line earns its place by flagging provenance and coverage limits.

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?

For a two-parameter read-only lookup with an output schema, the description covers purpose, both optional filters, null/default behavior, and data provenance. The remaining gap is failure behavior for invalid IDs, which matters given the 0% schema coverage but is a minor omission overall.

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 largely does: circuit_id is explained as an Ergast circuit ID with concrete examples ("monaco", "silverstone") and null semantics, and year is defined as filtering to circuits used in that season. It does add real meaning beyond the bare anyOf integer/string schema, though it doesn't state what an unmatched circuit_id returns.

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?

"Get circuit information" names a specific verb (get) and resource (circuit info), and the Args/Returns block clarifies that it returns metadata fields (circuitId, circuitName, locality, country, lat, long) rather than geometry. It does not distinguish itself from the sibling plot_circuit, so an agent must infer that one renders and this one describes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only conditional guidance is embedded in parameter docs ("If None, returns all circuits"), which is conditional behavior rather than when-to-use guidance. There is no statement of when to prefer this over plot_circuit or how it relates to schedule/event lookups, and no prerequisites or caveats about data availability.

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