departures
Fetches upcoming train times from an SNCF station ID, including real-time delays, cancellations, skipped stops, and platforms when available.
Instructions
Next departures from a station (id from find_station). Delay, cancellation and skipped stop come from the SNCF GTFS-RT realtime feed (transport.data.gouv.fr, open licence); a train absent from it runs as planned (realtime false). Platform only when the SNCF API provides it. realtime_unavailable is set when the feed is down (planned times only). from_datetime is ISO 8601, Paris time if no offset; defaults to now.
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_id": "<station_id>"
},
"name": "departures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| station_id | Yes | ||
| from_datetime | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |