Skip to main content
Glama

Get bus route

get_bus_route
Read-onlyIdempotent

Retrieves first and last bus times plus basic city bus route metadata for a given city code and route ID; use it for schedule data, not live vehicle locations.

Instructions

Get first and last bus times and basic city bus route metadata. Returns schedule data, not live locations (use get_route_bus_locations for live positions).

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_bus_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

Output Schema

NameRequiredDescriptionDefault
itemsYes
sourceUrlYes
catalogUrlYes
observedAtYes
totalCountYes
sourceServiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior. The description adds real context the annotations cannot: this returns schedule data rather than real-time positions, which is the key behavioral distinction. It stops short of noting error behavior for unknown route IDs or freshness of the schedule data.

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?

Two short sentences: the first states what is returned, the second states what is not and where to go instead. No redundant wording and the distinguishing constraint is front-loaded.

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 and fully documented parameters, the description only needs to disambiguate scope, which it does. A note about unknown-route behavior or schedule data freshness would make it complete, but nothing required for a correct call is missing.

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% and both parameters fully document their source (routeId from find_bus_routes/list_stop_routes, cityCode from city-list tools). The description adds no parameter meaning beyond that, so the baseline 3 applies.

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+resource: retrieving first/last bus times plus basic route metadata. It also delimits scope against a named sibling ('not live locations'), so an agent can distinguish it from get_route_bus_locations without opening a schema.

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?

Explicitly routes live-position queries to get_route_bus_locations, which is clear context. It does not address other nearby siblings like get_bus_route_status or list_route_stops, so there are no explicit exclusions beyond the one alternative.

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