Skip to main content
Glama

Get arrivals

get_arrivals
Read-only

Get arrivals for a stop or station within a time window, ordered by arrival time with line, origin, platform, realtime delay, and trip ID. Use a stop ID from find_stations.

Instructions

The arrivals board of a stop/station in a time window: line, origin, platform, realtime delay and the tripId of each vehicle run (for get_trip), ordered by arrival time. Large stations include related stops of the same hub; each entry's stop is the exact stop/platform. Disruption notices are listed once in alerts; entries refer to them by index. Use find_stations first if you only have a name. Times are ISO 8601 in each station's local time with its UTC offset; stops carry their IANA tz (none = German time). Delays in seconds (positive = late). Planned values equal to realtime ones and empty fields are omitted. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

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": {
      "stopId": "<stopId>"
    },
    "name": "get_arrivals"
  }
}

Input Schema

NameRequiredDescriptionDefault
whenNoStart of the time window, ISO 8601 with UTC offset (e.g. 2026-11-14T08:00+01:00); default now. Use the UTC offset valid at the station's location on that date (Germany: +01:00 in winter, +02:00 in summer).
stopIdYesStop/station id from find_stations - not a name.
resultsNoMaximum number of arrivals (1-100, default 20); `moreAvailable: true` in the result means the window holds more.
durationNoWindow length in minutes after `when` (1-720, default 30).
productsNoOnly arrivals using these kinds of transport (default: all). `bus` = local buses, `coach` = long-distance buses, `taxi` = on-demand services.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say readOnly/openWorld, while the description adds substantial behavioral detail: large stations fold in related stops of the same hub with each entry's `stop` being the exact platform, disruption notices are deduplicated into `alerts` and referenced by index, planned values equal to realtime are omitted, delays are signed seconds, and results are JSON followed by 'Hints:' with an attribution requirement.

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?

Front-loaded with the core purpose, then progressively adds hub handling, alerts indexing, timezone/delay conventions, and output shape. Dense but nearly every clause carries information; only the trailing 'Hints'/attribution line feels like boilerplate.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so: field list, ordering, alert deduplication, omission rules, timezone/offset conventions, and the trailing Hints section are all covered, so an agent can interpret the response without guessing.

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 parameters (when, stopId, results, duration, products) are already documented in the schema. The description reinforces the time-window and station scoping conceptually but adds no syntax or constraints beyond what the schema supplies; 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 ('arrivals board of a stop/station in a time window'), enumerates the returned fields (line, origin, platform, realtime delay, tripId), and states the ordering. It also names the sibling to use downstream (get_trip) and upstream (find_stations), so an agent can place it in the workflow without opening schemas.

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 says to run find_stations first if you only have a name, and points at get_trip for the per-run `tripId`. No explicit when/when-not against get_departures, but the arrivals-vs-departures distinction is self-evident from the stated purpose.

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