Места в поезде
train_seatsFetch available seats for a train by its ID. Filter by car type and max price, then get seat numbers formatted as car/seat for direct booking. Availability is refreshed on every call.
Instructions
Вагоны и свободные места в поезде. train_id — из train_search().
car_type — фильтр по типу («плац», «купе», «сид»), max_price — верхняя граница цены места. Места печатаются как «вагон/место» — именно в таком виде их ждёт train_book(train_id, seats="03/10,03/12").
Цены и наличие читаются заново на каждый вызов: место могли занять минуту назад.
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": {
"train_id": "<train_id>"
},
"name": "train_seats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| car_type | No | ||
| train_id | Yes | ||
| max_price | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |