tool_rank_trip_options
Rank flight or trip options by a value score (0-100) that factors in price, duration, stops, refundability, baggage, and hassle. Choose a priority to find the best option.
Instructions
Rank flight/trip options on a 0-100 value score — price plus stops, duration, refundability, baggage and hassle — not price alone.
Pass a JSON array of option objects with any of: price, duration_minutes, stops, refundable, checked_bag_included, self_transfer, hidden_city, split_ticket, visa_required, transit_visa_required, label.
Args: options_json: JSON array of option objects priority: cheapest/fastest/easiest/flexible/balanced currency: Display currency
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": {
"options_json": "<options_json>"
},
"name": "tool_rank_trip_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | USD | |
| priority | No | balanced | |
| options_json | Yes |