🚆 ⋯
trip_detailsAll the stops of a trip (one vehicle run) with their times. 'tripId' comes from departures or plan_journey. 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
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": {
"tripId": "<tripId>"
},
"name": "trip_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tripId | Yes | Trip id. | |
| 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). | |
| realTimeTripId | No | The realTimeTripId of the departure, if it has one: the same train in another feed, which gives its real time. |