Skip to main content
Glama

Get departures

get_departures
Read-only

Retrieve departure board information for a stop or station within a time window, including line, direction, platform, realtime delay, and tripId to plan onward travel.

Instructions

The departures board of a stop/station in a time window: line, direction, platform, realtime delay and the tripId of each vehicle run (for get_trip), ordered by departure 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_departures"
  }
}

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 departures (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 departures 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 declare readOnlyHint and openWorldHint; the description goes well beyond them by disclosing result ordering, hub-expansion behavior ('Large stations include related stops'), alert deduplication by index, omission of planned values equal to realtime, delay sign convention, timezone semantics, and the trailing 'Hints:' block with attribution/credit requirements. These are non-obvious output-shape traits an agent could not infer from structured fields.

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?

The opening sentence front-loads purpose and return fields, and every subsequent sentence carries distinct information (hub behavior, alerts, timezone, omissions, hints). It is dense and packed into long compound sentences, which hurts scanability slightly, but there is no filler or repetition.

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 five parameters, no output schema, and only read-only annotations, the description carries the full burden of explaining return values, and it does so thoroughly: ordering, returned fields, alert indexing, timezone/offset conventions, unit and sign of delays, and the Hints block. Nothing an agent needs to call and interpret this tool correctly appears to be 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%, so all five parameters (when, stopId, results, duration, products) are already documented with defaults and ranges, and the description adds little parameter-specific detail beyond the 'time window' framing. It mentions the timezone/offset handling and that `moreAvailable` signals a truncated window, but those are return-value semantics rather than new parameter meaning.

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 ('departures board of a stop/station in a time window') and enumerates the returned fields (line, direction, platform, realtime delay, tripId), which cleanly separates it from get_arrivals. It also names the downstream sibling get_trip that consumes tripId, so an agent can place the tool in a workflow without opening any 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?

Provides an explicit precondition and routing rule: 'Use find_stations first if you only have a name', which resolves the most common wrong invocation (passing a name as stopId). It does not state when to prefer get_arrivals or plan_journey over this tool, so the alternative-selection guidance is clear but not exhaustive.

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