Skip to main content
Glama

detect_undercuts

Identify undercut and overcut moves in a race, showing the laps, gap before, position changes and whether each move worked, plus a driver filter to inspect specific battles.

Instructions

Undercuts and overcuts in a race (OpenF1, 2023+): a chaser stopping first and jumping the car ahead (undercut), or the car behind staying out longer and getting ahead of a car that stopped first (overcut), with the laps, the gap before, who was ahead afterwards and whether it worked. Stops under a safety car are ignored. This is a heuristic. Pass driver ('Max', 'NOR') to see only moves involving them.

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

Input Schema

NameRequiredDescriptionDefault
yearYes
driverNo
countryYes
session_nameNoRace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that this is a heuristic (results are approximate), that stops under a safety car are ignored (a real exclusion rule affecting output), and that data coverage starts at 2023. It does not mention error handling for unknown countries or performance characteristics.

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?

It is front-loaded with the core definition and ends with the actionable driver-filter note. The first sentence is long and packed with subordinate clauses (definition, outputs, exclusion rule), which could be split, but nearly every clause carries information.

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?

No output schema and no annotations, so the description must explain both behavior and returns; it handles the return shape well ('the laps, the gap before, who was ahead afterwards and whether it worked'). It falls short on parameter guidance for country/session_name and on any statement about result ordering or volume.

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 0%, so the description must compensate. It does add value for `driver` by showing accepted formats ('Max', 'NOR') and by clarifying the filter is 'moves involving them'. However, `country`, `year`, and `session_name` (defaults to 'Race') get no clarification of format or valid values, leaving half the parameters ambiguous.

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 derived metric (undercut/overcut detection) and defines both terms inline, plus the outputs: laps, gap before, who was ahead afterwards, and whether it worked. It does not explicitly differentiate itself from data-fetching siblings like get_pit_stops or get_overtakes, so an agent must infer that this is an analysis layer rather than raw data lookup.

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 is only implied – the reader infers it belongs to race-strategy analysis because of the OpenF1/2023+ scope and the driver filter. There is no explicit when-to-use or when-not-to-use guidance and no named alternative (e.g., use get_pit_stops for raw stop data).

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