Compare direct Shinkansen trains
compare_trainsSort direct-train candidates by departure, arrival, duration, or fare to find the option matching your criteria.
Instructions
Use to sort structured direct-train candidates by departure, arrival, duration, or total fare. This tool does not make a subjective recommendation.
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": {
"fromStationId": "<fromStationId>",
"toStationId": "<toStationId>",
"date": "<date>"
},
"name": "compare_trains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| limit | No | ||
| offset | No | ||
| sortBy | No | departure_time | |
| operators | No | ||
| toStationId | Yes | Canonical ID returned by search_stations. | |
| serviceTypes | No | ||
| fromStationId | Yes | Canonical ID returned by search_stations. | |
| departureAfter | No | ||
| departureBefore | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| trains | Yes | ||
| hasMore | Yes | ||
| returned | Yes | ||
| nextOffset | Yes |