Search trains
rj_search_trainsSearch one-way Iranian trains between two stations on a given date to compare Toman prices, available seats, and wagon classes for trip planning.
Instructions
Search one-way trains between two stations on a date, with prices in Toman and free seats.
Each row is one train and wagon class. free_seats is what the site shows (it shows "20+" above 20 and
sells at most 10 per booking). Pass a row's ref to rj_train_stops for its stops. Prices are per passenger.
Search only: it never reserves or pays. Raja may answer only from an Iranian IP.
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": "rj_search_trains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Travel date, Jalali like 1405/08/30 or Gregorian like 2026-11-21. | |
| limit | No | Maximum rows. | |
| origin | Yes | Origin station: Persian name, English name or code, e.g. تهران, Tehran or 1. | |
| passengers | No | Number of passengers. | |
| destination | Yes | Destination station, same forms as origin, e.g. مشهد or 191. | |
| ticket_type | No | Seat group: family (mixed, default) or male / female for same-sex compartments. | family |
| include_sold_out | No | Also list trains with no free seats. |