🚉 ⇄
departuresNext 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
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | Stop name, resolved by geocoding (used when stopId is missing). | |
| time | No | Start date-time, ISO-8601: with offset, or in the local time of the stop. Default: now. | |
| count | No | Number of departures (default 20). | |
| lines | No | Only these lines of the station (names listed in the station lines), with 'station' true. | |
| modes | No | Only these transit modes. | |
| stopId | No | Exact stop id. | |
| station | No | true: departures of all the stops of the station (within 200 m), not only of this stop. | |
| arriveBy | No | true: arrivals instead of departures. | |
| language | No | Preferred 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). | |
| pageCursor | No | Cursor returned by a previous call, to get the next or previous page. |