Skip to main content
Glama

Pitstop

get_race_control_messages

Retrieve official race control messages including flags, safety car periods, penalties, and track status changes for Formula 1 sessions to analyze race events and incidents.

Instructions

Get official race control messages for a session.

Retrieves all race control messages issued during a session, including flags, safety car periods, investigations, penalties, and track status changes. Essential for understanding session events and incidents.

Args: year: The season year (2018 onwards) gp: The Grand Prix name (e.g., 'Monza', 'Monaco') or round number session: Session type - 'FP1', 'FP2', 'FP3', 'Q', 'S', 'R'

Returns: RaceControlMessagesResponse: Race control messages in JSON-serializable format

Examples: >>> # Get all race control messages from 2024 Monaco race >>> messages = get_race_control_messages(2024, "Monaco", "R")

>>> # Check safety car deployments and flags >>> race_msgs = get_race_control_messages(2024, "Spa", "R")

Input Schema

NameRequiredDescriptionDefault
gpYes
sessionYes
yearYes

Input Schema (JSON Schema)

{ "properties": { "gp": { "anyOf": [ { "type": "string" }, { "type": "integer" } ], "title": "Gp" }, "session": { "title": "Session", "type": "string" }, "year": { "title": "Year", "type": "integer" } }, "required": [ "year", "gp", "session" ], "type": "object" }

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/praneethravuri/pitstop'

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