Skip to main content
Glama

get_live_buses_on_route

Retrieve real-time bus locations for a specific operator and route, with optional stop, vehicle, and bounding-box filters to narrow results.

Instructions

Get real-time bus locations for a specific operator and route. Filters are applied server-side by the BODS datafeed, shrinking payloads.

Parameters: operator_ref: Operator NOC code (e.g. ARBB, SCCM, CBBH). line_ref: Route number (e.g. 12, MK1, 100). origin_ref: Optional origin stop ref filter. destination_ref: Optional destination stop ref filter. vehicle_ref: Optional single-vehicle filter. bounding_box: Optional filter "minLon,minLat,maxLon,maxLat" (WGS84).

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

Input Schema

NameRequiredDescriptionDefault
line_refYes
origin_refNo
vehicle_refNo
bounding_boxNo
operator_refYes
destination_refNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.3
    • addedInput schema / properties / bounding_box
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Bounding Box"
      +}
    • addedInput schema / properties / destination_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Destination Ref"
      +}
    • addedInput schema / properties / origin_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Origin Ref"
      +}
    • addedInput schema / properties / vehicle_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Vehicle Ref"
      +}
  2. First observedv1.0.2

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses only one trait: filters are applied server-side by the BODS datafeed, shrinking payloads. It says nothing about authentication or API-key needs, rate limits, data freshness or staleness of real-time positions, or what an empty result means when no vehicle is currently running.

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?

The purpose sentence is front-loaded, the payload note earns its place, and the parameter block is a scannable list rather than prose. Slight redundancy remains in restating parameter names from the schema, but that restatement is where the added meaning lives.

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

Completeness4/5

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

With an output schema present, return values need not be explained, and the description adequately covers purpose, filtering behavior, and all parameter semantics for a six-parameter real-time query. The remaining gap is operational context — data freshness and failure/empty-result behavior — which matters for a live-position feed with no annotation coverage.

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 labels every one of the six parameters, marks the four optional ones explicitly, gives concrete NOC-code examples (ARBB, SCCM, CBBH) for operator_ref, route-number examples for line_ref, and supplies the exact 'minLon,minLat,maxLon,maxLat' WGS84 format for bounding_box that the schema does not convey.

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 opens with a specific verb and resource, 'Get real-time bus locations for a specific operator and route,' which tells an agent exactly what the tool returns and the scope it operates on. It does not name or differentiate itself from nearby siblings such as estimate_live_eta or find_buses_by_arrival_time, so the agent must infer that distinction itself.

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 by the phrase 'for a specific operator and route,' which signals this is the route-scoped lookup, but there is no explicit when-to-use or when-not-to-use statement and no named alternative for adjacent queries like arrival-time lookups. The sentence about server-side filtering explains mechanics rather than selection guidance.

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