Поиск поездов
train_searchFind available trains on a date using numeric station codes; returns trip options to continue with seat selection and booking.
Instructions
Поиск поездов. origin/destination — ЧИСЛОВЫЕ коды станций банка (2000000 — Москва, 2004000 — Санкт-Петербург), date — YYYY-MM-DD.
Резолвера «название станции → код» у банка нет. Если кода не знаешь, проверить пару можно train_calendar(origin, destination): она скажет, какие даты вообще в продаже, и на неверной паре ответит пусто.
Дальше: train_seats(train_id) — вагоны и места, оттуда train_book().
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": {
"origin": "<origin>",
"destination": "<destination>",
"date": "<date>"
},
"name": "train_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| limit | No | ||
| adults | No | ||
| origin | Yes | ||
| children | No | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |