Skip to main content
Glama

Get Starting Grid

get_starting_grid

Fetch the starting grid for an F1 race from OpenF1 using a session_key. Retrieve grid positions and driver numbers after official results publish; retry earlier sessions if not yet available.

Instructions

Fetch the starting grid for an F1 race from OpenF1.

Grid data becomes available a few minutes after the official results are published on the Formula 1 website. If the API returns HTTP 404, the grid is not yet published for that session — retry with an earlier session_key (use get_sessions to find completed sessions).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionNoint — optional, >= 1. Position on the grid.
session_keyNoint | str — required in practice, positive int or 'latest'. Session identifier; use get_sessions to discover it.
driver_numberNoint — optional, 1-99. Driver number for the season.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden, and it does so well by disclosing data-availability timing and the 404 failure mode plus the correct recovery action. It omits whether results are paginated or how a partial grid is returned, but the availability/error semantics are the operationally important traits for this endpoint.

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-loads the one-line purpose, then adds two short paragraphs of operational guidance with no filler. Slightly longer than strictly necessary, but every sentence conveys actionable information about timing or error handling.

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 return-value explanation is not needed, and the description covers the two things an agent would otherwise guess wrong: when grid data becomes available and what a 404 means. Auth and rate-limit behavior are unaddressed, but the core call-and-recover loop is complete.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters (position, session_key, driver_number) are already documented in the schema, including the 'latest' enum-like value and the get_sessions discovery pointer. The description adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 ("Fetch the starting grid for an F1 race from OpenF1"), which is unambiguous. It does not, however, distinguish itself from adjacent siblings like get_session_results or get_positions, which return overlapping race data; the only sibling named (get_sessions) is cited for parameter discovery, not disambiguation.

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 real conditional guidance: grid data appears a few minutes after official results, and HTTP 404 means the grid isn't published yet, so the agent should retry with an earlier session_key. It stops short of stating when to prefer this tool over get_session_results/get_positions for grid information.

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