Skip to main content
Glama

Get route bus locations

get_route_bus_locations
Read-onlyIdempotent

Retrieves current GPS locations of all buses on a specified city bus route, enabling users to track vehicle positions along that route.

Instructions

Get current reported GPS locations of all buses on a city bus route. For buses approaching one stop, use get_approaching_bus_location. observedAt is query time.

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": {
      "cityCode": "<cityCode>",
      "routeId": "<routeId>"
    },
    "name": "get_route_bus_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-1000); defaults to 1
routeIdYesCity bus route ID (routeid) returned by find_bus_routes or list_stop_routes
cityCodeYesTAGO city code from a city-list tool, including list_pm_providers for personal mobility
pageSizeNoMaximum items per page (1-100); defaults to 10

Output Schema

NameRequiredDescriptionDefault
itemsYes
sourceUrlYes
catalogUrlYes
observedAtYes
totalCountYes
sourceServiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds a genuine semantic caveat that the data is 'reported' GPS and that observedAt reflects query time, warning the agent about freshness. It stops short of noting pagination or what happens for routes with no active buses, so it adds useful but not complete context.

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?

Three short sentences with the core scope front-loaded, the routing rule second, and a freshness caveat last. No wording is wasted or restated from structured fields.

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 and the observedAt field need not be explained, and rich annotations cover behavior. Purpose, alternative routing and data-freshness are all addressed; only minor operational details such as pagination across many buses are left unstated.

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 100%, with routeId, cityCode, page and pageSize all documented including source tools for the identifiers, so the schema carries the full burden. The description adds nothing about parameter meaning or interaction (e.g., how pageSize affects the 'all buses' claim), leaving it at the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get current reported GPS locations') with clear scope ('all buses on a city bus route'), which is exactly the distinction needed versus stop-level siblings. An agent can tell it apart from get_approaching_bus_location without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative tool and the condition that selects it: 'For buses approaching one stop, use get_approaching_bus_location.' The when-to-use boundary is stated rather than inferred.

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