Skip to main content
Glama

Get bus arrivals

get_bus_arrivals
Read-onlyIdempotent

Retrieve current predicted arrivals for all city bus routes at a specified stop by city code and stop ID, helping users check upcoming buses and plan which one to catch.

Instructions

Get current predicted arrivals for all city bus routes at a stop. For a single route at a stop, use get_route_arrivals_at_stop. 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>",
      "nodeId": "<nodeId>"
    },
    "name": "get_bus_arrivals"
  }
}

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
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, openWorld and non-destructive, so the safety profile is covered. The description still earns credit for a genuine data-semantics clarification with "observedAt is query time," which prevents misreading a response field as the predicted arrival time. It does not discuss pagination limits or prediction freshness beyond that.

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, zero filler, with the core purpose front-loaded before the disambiguation and the response-semantics note. Nothing could be removed without losing information.

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 rich annotations, a fully documented 4-parameter schema and an output schema, the description covers everything needed to select and call the tool. A non-critical gap remains around result caps or prediction staleness, but nothing blocks correct invocation.

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 every parameter (cityCode, nodeId, page, pageSize) is already documented, including where nodeId and cityCode come from. The description adds nothing about parameter formats or constraints, so the baseline of 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 current predicted arrivals") plus the exact scope ("for all city bus routes at a stop"), and then explicitly names the narrower sibling it is not. An agent can distinguish it from get_route_arrivals_at_stop 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?

Gives an explicit routing rule: use this for all routes at a stop, use get_route_arrivals_at_stop for a single route. The condition that selects the alternative is stated outright rather than left to inference.

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