Skip to main content
Glama

estimate_live_eta

Estimate when live buses on a route will reach a specified stop, matching each vehicle to its nearest timetable position and returning the scheduled ETA.

Instructions

Estimate when live buses on a route will reach a stop. Each vehicle is matched to its nearest stop on the timetable route; the ETA is the schedule offset from that position (or, when the next service hasn't reached the vehicle's position yet, its scheduled arrival). Honest estimation, not prediction: it assumes vehicles run to schedule from their matched position. Route stop lists are direction-merged and past-midnight times compare as published.

Parameters: stop: Target stop (NaPTAN code or name). operator_ref: Operator NOC code (e.g. ARHE), or the operator name as it appears in the timetable index. The two are resolved to the same route; the NOC is what reaches the live feed. line_ref: Route number. day: Optional day filter: mon, tue, wed, thu, fri, sat, sun. Defaults to today.

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": {
      "stop": "<stop>",
      "operator_ref": "<operator_ref>",
      "line_ref": "<line_ref>"
    },
    "name": "estimate_live_eta"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNo
stopYes
line_refYes
operator_refYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well. It explains the matching method, the scheduled-offset basis for ETAs, the key assumption that vehicles run to schedule, and caveats around direction-merged stop lists and past-midnight times.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and method, then gives parameter details in a clear list. Despite its length, each sentence adds useful context about estimation behavior or parameter interpretation.

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?

Given the tool's complexity and the presence of an output schema, the description is complete enough to call the tool correctly. It covers the estimation logic, assumptions, parameter meanings, and important edge cases without needing to explain return values.

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?

Schema description coverage is 0%, so the description must compensate, and it does. It defines all four parameters, including stop formats, operator NOC examples, how operator names are resolved, line_ref meaning, and valid day values with the default.

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 states a specific verb and resource: estimate when live buses on a route will reach a stop. It is clear what the tool does, but it does not explicitly distinguish itself from nearby tools such as get_live_buses_on_route or find_buses_by_arrival_time.

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 implied by the purpose and by explaining that this is an estimate rather than a prediction. However, there is no explicit when-to-use guidance, prerequisites, or comparison to alternative sibling tools.

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