Skip to main content
Glama

get_race_control

Retrieve a session's race control log, including safety cars, flags, penalties and investigations with lap numbers, plus a summary of message counts.

Instructions

What race control did in a session (OpenF1, 2023+): safety cars, virtual safety cars, red and yellow flags, penalties, investigations, session start and finish, with lap numbers, plus a summary of counts. Set all_messages for every message (except DRS). country = any country, city, circuit or GP name.

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>",
      "country": "<country>"
    },
    "name": "get_race_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
countryYes
all_messagesNo
session_nameNoRace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the data source and coverage boundary ('OpenF1, 2023+') and that results include a summary of counts, but says nothing about permissions, rate limits, empty-result behavior, or output shape beyond content types.

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?

Two tight sentences, front-loaded with what the tool returns and followed by the two parameter clarifications. Every clause carries information, with only minor density in the middle enumeration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with no annotations and no output schema, the description covers returned content, source/era limits, and two parameters well. The unexplained session_name (despite a default of 'Race' implying other session types are valid) is a meaningful gap for an agent building a call.

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?

With 0% schema description coverage, the description does real work: it explains the all_messages flag (the unfiltered 'everything except DRS' mode) and clarifies that 'country' accepts any country, city, circuit, or GP name — a non-obvious input flexibility. 'year' is only bounded indirectly by the 'OpenF1, 2023+' note, and 'session_name' (default 'Race') is left unexplained.

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?

The description names a specific resource ('race control ... in a session') and enumerates its contents — safety cars, VSCs, flags, penalties, investigations, session start/finish — with lap numbers. That content profile is clearly distinct from siblings like get_race_results or get_team_radio, though it never explicitly contrasts itself with any of them.

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

Usage Guidelines3/5

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

Usage context is only implied: an agent can infer this is the tool for race-control messages. The only explicit guidance is parameter-level ('Set all_messages for every message (except DRS)'), with no statement of when to prefer another tool or what to do when no messages exist.

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