Skip to main content
Glama

Get route arrivals at stop

get_route_arrivals_at_stop
Read-onlyIdempotent

Get predicted arrival times for a specific bus route at a chosen stop using cityCode, nodeId, and routeId.

Instructions

Get predicted arrivals for a single bus route at a specific stop. For all routes at a stop, use get_bus_arrivals instead. Requires cityCode, nodeId, and routeId from stop/route lookups.

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>",
      "nodeId": "<nodeId>",
      "routeId": "<routeId>"
    },
    "name": "get_route_arrivals_at_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-1000); defaults to 1
nodeIdYesCity bus stop ID (nodeid) returned by find_bus_stops or find_nearby_bus_stops
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

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds that results are predictions rather than schedules and that the three IDs must come from prior lookups, but says nothing about freshness, rate limits, or auth. With annotations carrying the behavioral load, a 3 is appropriate.

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?

Three short sentences, front-loaded with the core purpose and followed by the alternative and prerequisites. The final sentence largely duplicates the schema's own parameter descriptions, making it slightly redundant but not wasteful.

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, full annotations, and complete parameter coverage, the description only needs to establish purpose and routing, which it does. Nothing an agent needs to call it correctly is missing, though it could note that results are real-time predictions subject to change.

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%, so all five parameters including page and pageSize are already documented in the schema. The description only restates the three required IDs and their lookup sources, adding no syntax or format detail beyond what the schema provides. 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 and resource ('Get predicted arrivals') with explicit scope: a single bus route at a specific stop. It also names the sibling it is not (get_bus_arrivals), so an agent can distinguish the two 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 Guidelines4/5

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

Names the alternative explicitly and the condition that selects it ('For all routes at a stop, use get_bus_arrivals instead'), plus the prerequisite ID sources. It does not address other nearby options such as approaching-vehicle or express-bus arrival tools, but the core routing decision is clear.

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