Skip to main content
Glama

Errance

🚉 ⇄

departures
Read-only

Next departures (or arrivals) at a stop, with real-time delays, cancellations and tracks when available. Give 'stopId' (from search_places or explore_area) or a stop name in 'stop'. For a railway station, the first page also lists the lines of the station (all its stops within 200 m): their departures are given by 'station' true, with 'modes' and 'lines'. Service alerts (disruptions, works, closed lines or elevators) active at the time of a leg or departure are numbered after it, e.g. 'alerts [1]', and listed at the end: tell the user briefly about those of the options you propose. The itineraries do not avoid the lines with an alert: warn when one says the service is interrupted (NO_SERVICE).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopNoStop name, resolved by geocoding (used when stopId is missing).
timeNoStart date-time, ISO-8601: with offset, or in the local time of the stop. Default: now.
countNoNumber of departures (default 20).
linesNoOnly these lines of the station (names listed in the station lines), with 'station' true.
modesNoOnly these transit modes.
stopIdNoExact stop id.
stationNotrue: departures of all the stops of the station (within 200 m), not only of this stop.
arriveByNotrue: arrivals instead of departures.
languageNoPreferred language of the names, as ISO 639-1 code (e.g. fr, de). The names of the stations are translated in fr, es, en, nl, de and it ("Gérone" for Girona in fr).
pageCursorNoCursor returned by a previous call, to get the next or previous page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnly/openWorld/non-destructive; the description adds real behavior the agent could not otherwise know — that alerts are numbered inline ('alerts [1]') and listed at the end, that the station's lines appear on the first page, and critically that itineraries do NOT avoid lines under alert (NO_SERVICE), which is an important caveat. It does not cover failure modes such as ambiguous stop names or rate limiting.

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?

Purpose is front-loaded in the first sentence and each subsequent sentence covers a distinct concern (input sourcing, station mode, alert handling). The alert paragraph drifts into agent-facing instructions ('tell the user briefly...'), and the mid-sentence line breaks hurt scanability slightly.

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?

For a 10-parameter, no-required-parameter tool with no output schema, the description covers the essentials: what is returned, how to obtain the stop identifier, what the station flag does, and how alerts surface. Gaps remain around pagination behavior and what happens when a stop name does not resolve, but nothing critical to correct invocation is 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 the baseline is 3. The description adds modest extra meaning — where 'stopId' should come from (search_places/explore_area) and the coupling between 'station', 'modes' and 'lines' — but leaves the remaining parameters (time, count, pagination, language) entirely to the schema.

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?

The opening sentence names a specific verb and resource ('Next departures (or arrivals) at a stop') and immediately enumerates what comes back ('real-time delays, cancellations and tracks'), so the tool is distinguishable from siblings like plan_journey or route_details without opening the 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?

It gives concrete routing advice: supply 'stopId' obtained from search_places or explore_area, or fall back to a stop name in 'stop'. It also explains the conditional mode of use (set 'station' true with 'modes' and 'lines' to get all stops within 200 m). It stops short of stating when to prefer plan_journey or route_details instead, so no exclusions are defined.

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.