Rank pasted bus results
rank_pasted_resultsRanks bus results copied and pasted from redBus or MakeMyTrip, enabling comparison and sorting when the app cannot open the booking page directly.
Instructions
Rank buses from a results page the user copied and pasted (redBus or MakeMyTrip).
For apps that can't open the user's browser (ChatGPT, Gemini): the user opens plan_bus_trip's link, copies the whole page and pastes it. Returns the same ranked table as rank_buses.
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": {
"text": "<text>",
"origin": "<origin>",
"destination": "<destination>",
"travel_date": "<travel_date>"
},
"name": "rank_pasted_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Where it was copied from; detected if left out. | |
| text | Yes | The results page text the user copied from redBus or MakeMyTrip (select all, copy, paste). Pass it as pasted. | |
| origin | Yes | Starting city. | |
| sort_by | No | How to sort. | best |
| bus_type | No | What the user wants. | any |
| around_time | No | Preferred departure, HH:MM. | |
| destination | Yes | Destination city. | |
| travel_date | Yes | Travel date, YYYY-MM-DD (India time). |