Skip to main content
Glama

departures

Read-only

Free. Upcoming departures at a stop_id, with trip_id, line, scheduled/actual time, current delay and per-row 'delay_source'. Use trip_id as 'trip_id' in plan_transfer for the train the traveller is already on. Read delay_source before reading delay_minutes: 'realtime' means the times are live, so 0 is on time; 'scheduled' means timetable only, so 0 means NOT MEASURED.

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": {
      "station": "<station>"
    },
    "name": "departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
stationYesA station id from search_stations. Accepts `stop_id` (the stop_id field from search_stations) or `provider_stop_id` (the provider_stop_id field from search_stations). NOT accepted: the eva field (an EVA number is a station identifier, not a stop id — no provider resolves it), a station name, or a numeric tail of an id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / station / description
      Previous value: -"stop_id from search_stations."New value: +"A station id from search_stations. Accepts `stop_id` (the stop_id field from search_stations) or `provider_stop_id` (the provider_stop_id field from search_stations). NOT accepted: the eva field (an EVA number is a station identifier, not a stop id — no provider resolves it), a station name, or a numeric tail of an id."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description adds real value: it discloses that the tool is free and, critically, explains the semantics of delay_source ('realtime' vs 'scheduled') so a 0 delay is not misread as on-time when unmeasured. It does not cover pagination or rate limits, keeping it short of a 5.

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 purpose and return fields, then the cross-tool hint, then the delay_source caveat. Dense but every sentence carries information; the delay_source explanation is slightly verbose but justified by the misinterpretation risk it prevents.

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 no output schema, the description carries the burden of describing return values and does so by listing the fields and explaining delay_source semantics. The only gap is the undocumented limit parameter, which matters little for correct invocation given the default.

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 coverage is 50%: the station parameter is well documented in the schema, and the description reinforces stop_id usage but adds nothing new there. The limit parameter (default 10, max 30) is undocumented in both schema and description, so the description does not compensate for the coverage gap.

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 ('Upcoming departures at a stop_id') and enumerates the returned fields (trip_id, line, scheduled/actual time, delay, delay_source). An agent can distinguish this from search_stations (id lookup) and plan_transfer (journey planning) 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?

Gives concrete downstream guidance: use the returned trip_id as 'trip_id' in plan_transfer for the train the traveller is already on, and read delay_source before delay_minutes. It lacks an explicit when-not-to-use statement, but the cross-tool routing is clear and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources