Skip to main content
Glama
fastf1-mcp-server

fastf1-mcp-server

by Surya96t

watch_replay

Watch a running F1 race replay for a set duration to capture position changes, pit stops, track-status alerts, and race-control messages. Call repeatedly for live commentary or race-engineer updates.

Instructions

Watch a running f1-race-replay for a few seconds and report what happened: position changes, pit entries/exits, track-status changes (SC/VSC/red flag), new race-control messages and laps completed.

Data source: f1-race-replay telemetry stream (localhost:9999)

Use for live commentary ("tell me what's happening"), or call it repeatedly to follow a replay like a race engineer. Combine with a faster playback speed to cover more of the race per call.

Args: duration_sec: How long to watch, in real seconds (1-60, default 10)

Returns: { "from": {"replayTime": "00:41:12", "lap": 23}, "to": {"replayTime": "00:42:52", "lap": 24}, "replaySecondsCovered": 100.0, "positionChanges": [{"driver": "NOR", "from": 4, "to": 3, "replayTimeSec": 2388.4}, ...], "netPositionChanges": [{"driver": "NOR", "from": 4, "to": 3}], "pitEntries": ["HAM"], "pitExits": [], "trackStatusChanges": [{"from": "GREEN", "to": "SC", "replayTimeSec": 2401.2}], "newRaceControl": [{"category": "SafetyCar", "message": "SAFETY CAR DEPLOYED", ...}], "leaderNow": "VER", "state": { ...same shape as get_replay_state (top 10)... } }

Note: Messages are sampled four times a second, so a position swap that reverts within ~0.25 s of real time can be missed. positionChanges lists every change seen, in order (an overtake that is later reversed appears twice); netPositionChanges compares the start and end of the window. rewound is true if the user scrubbed backwards; stalled is true if the stream went quiet (replay paused or closed) before the window ended.

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": "watch_replay"
  }
}

Input Schema

NameRequiredDescriptionDefault
duration_secNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the load well: it names the data source (localhost:9999), discloses the 4 Hz sampling rate and the resulting ~0.25 s blind spot, distinguishes cumulative `positionChanges` from `netPositionChanges`, and explains the `rewound` and `stalled` flags including the paused/closed-stream case. The only soft spot is that it never says what happens when no replay is running at all when the call is made.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is excellent — purpose first, then data source, usage, Args, Returns, caveats — but the multi-line Returns block largely restates a return shape that already exists as an output schema, which is redundant bulk. The Note section is genuinely high-value and should have been kept while the return dump was trimmed.

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

Completeness5/5

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

For a polling window-capture tool, every decision-relevant fact is present: blocking duration semantics, sampling fidelity limits, the two position-change views, and the stalled/rewound termination states. An agent can call this correctly and interpret the output without consulting anything else.

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

Parameters5/5

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

The single parameter has 0% schema coverage, so the description must compensate and does: it gives unit ('real seconds'), valid range (1-60), and default (10) in the Args block. That is everything an agent needs to choose a value.

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: 'Watch a running f1-race-replay for a few seconds and report what happened', followed by an exact list of observable events (position changes, pit entries/exits, track status, race control, laps). It is clearly distinguishable from point-in-time siblings like get_replay_state, though it never names an alternative explicitly by way of contrast.

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 concrete use contexts: 'live commentary' and 'call it repeatedly to follow a replay like a race engineer', plus the tactic of combining it with faster playback speed to cover more race per call. It does not explicitly exclude cases (e.g. when a single snapshot via get_replay_state is preferable), so guidance is clear but not fully discriminating.

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