Search Italian train journeys
search_train_journeysSearch one-way train journeys in Italy by origin, destination, and travel date; include adult and child passenger counts and paginate results when needed.
Instructions
TRAINS ONLY. Requires origin, destination, and date. When the user states passenger counts, always pass adults and children explicitly. Each price is the total for those passengers; never infer discounts or convert it to a per-person price. For stable pagination start with snapshot:true; continue using only searchId, offset and limit.
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": "search_train_journeys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Today or a future date in Europe/Rome, in YYYY-MM-DD format | |
| limit | No | ||
| adults | No | Number of adult passengers; pass explicitly when stated by the user | |
| offset | No | Result offset; paginate by adding the previous limit when truncated is true | |
| origin | No | ||
| children | No | Number of child passengers; pass explicitly when stated by the user, including zero | |
| provider | No | ||
| searchId | No | ||
| snapshot | No | ||
| destination | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| errors | Yes | ||
| journeys | Yes | ||
| searchId | No | ||
| createdAt | No | ||
| expiresAt | No | ||
| truncated | Yes |