search_flights
Find one-way or round-trip flights by origin, destination, and date, then filter by stops, cabin, times, price, airlines, and bags to compare options.
Instructions
Search one-way or round-trip flights on Google Flights.
origin and destination are IATA codes; separate several with commas, e.g. "BRU,CRL". With return_date the result lists outbound flights and get_next_flights(departure_token) lists the return flights. outbound_times and return_times are hour ranges, "6,12" for departure or "6,12,10,18" for departure and arrival. max_stops 0 is nonstop only; bags counts carry-on bags. Airline filters take 2-letter IATA codes or STAR_ALLIANCE, SKYTEAM, ONEWORLD. deep_search is slower but closer to the browser.
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>",
"departure_date": "<departure_date>"
},
"name": "search_flights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bags | No | ||
| adults | No | ||
| origin | Yes | ||
| sort_by | No | top | |
| children | No | ||
| currency | No | EUR | |
| max_price | No | ||
| max_stops | No | ||
| cabin_class | No | economy | |
| deep_search | No | ||
| destination | Yes | ||
| max_results | No | ||
| return_date | No | ||
| return_times | No | ||
| departure_date | Yes | ||
| outbound_times | No | ||
| exclude_airlines | No | ||
| include_airlines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| offers | Yes | ||
| total_found | Yes | ||
| price_insights | Yes | ||
| google_flights_url | Yes |