Search flights
search_flightsSearches flights between two airports, round trip or one way. Returns the top 6 by value (price plus a penalty for long trips and extra stops; limit up to 20) with total_available and a summary; each flight has the total price for all adults, outbound and return (duration_minutes, stops, layovers, departs, arrives, carriers, tight_connection under 60 minutes) and a book_link to the Adonde flight search. Reads only; nothing is booked. travel_time_total is out plus back: never present it as one flight's duration; quote each direction. Use after stays and tours for a built trip (get_trip's next has the dates); ask for the origin airport if unknown.
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>",
"depart": "<depart>",
"adults": "<adults>"
},
"name": "search_flights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many options to return, up to 20 (default 6). | |
| adults | Yes | Number of adult passengers, 1 to 8. | |
| depart | Yes | Outbound date, YYYY-MM-DD. | |
| origin | Yes | Departure airport, 3-letter IATA code, e.g. CHS. | |
| return | No | Return date, YYYY-MM-DD; omit for one way. | |
| destination | Yes | Arrival airport, 3-letter IATA code, e.g. LIS. |