Rank bus listings
rank_busesScores real bus listings by trust, bus type, departure time, and fare, drops buses that already left, then returns a ranked table with a booking link per bus.
Instructions
Rank real bus listings for the traveller and give each one a booking link.
Use after plan_bus_trip, once real results are visible (opened in a browser or pasted by the user). Scores each bus for trust (government operator, copycat names, rating weighted by reviews, live tracking, boarding point), checks the bus type (semi-sleeper is not a sleeper), drops buses that already left today, and returns a ranked table with a link per bus.
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>",
"travel_date": "<travel_date>",
"buses": "<buses>"
},
"name": "rank_buses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buses | Yes | Buses copied from a booking site's results page (what you or the user can see). Never invent entries. | |
| origin | Yes | Starting city, as for plan_bus_trip. | |
| sort_by | No | 'best' balances trust, fit, price and seats; 'earliest' puts the soonest catchable bus first. | best |
| bus_type | No | Seat/AC preference to rank by. | any |
| around_time | No | Time the traveller wants to leave, HH:MM (e.g. '09:00' for 'around 9 am'). Buses near it rank higher. | |
| destination | Yes | Destination city. | |
| travel_date | Yes | Departure date as YYYY-MM-DD (IST). |