search_flights
Find one-way or round-trip flights on Google Flights with filters for cabin, stops, airlines, price, duration, and dates, returning fares, schedules, layovers, and CO2 emissions.
Instructions
Search one-way or round-trip flights on Google Flights.
Returns itineraries with price, airlines, flight numbers, times, duration, layovers, aircraft, legroom and CO2 emissions. For round trips the listed flights are outbound options and prices are round-trip totals.
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 |
|---|---|---|---|
| cabin | No | Cabin class. | economy |
| limit | No | Maximum itineraries to return. | |
| adults | No | Adults (12+). | |
| origin | Yes | 3-letter IATA airport or city code, e.g. 'JFK', 'LON'. | |
| sort_by | No | 'best' keeps Google's ranking. | best |
| airlines | No | Restrict to airlines by 2-letter IATA code (e.g. ['BA','AA']) or alliance ('ONEWORLD', 'STAR_ALLIANCE', 'SKYTEAM'). | |
| children | No | Children (2-11). | |
| currency | No | ISO 4217 currency code, e.g. 'USD', 'EUR', 'ILS'. | USD |
| max_price | No | Maximum total price in `currency`. | |
| max_stops | No | 0 = nonstop only, 1 = up to one stop, etc. | |
| destination | Yes | 3-letter IATA airport or city code, e.g. 'JFK', 'LON'. | |
| return_date | No | YYYY-MM-DD for a round trip; omit for one-way. | |
| checked_bags | No | Include checked-bag fees in price. | |
| carry_on_bags | No | Include carry-on fees in price. | |
| departure_date | Yes | Date as YYYY-MM-DD. | |
| infants_on_lap | No | Infants on lap. | |
| infants_in_seat | No | Infants with their own seat. | |
| max_duration_hours | No | Maximum journey duration per leg. | |
| exclude_basic_economy | No | ||
| hide_separate_tickets | No | Hide self-transfer / separate-ticket itineraries. | |
| latest_departure_hour | No | ||
| earliest_departure_hour | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| currency | Yes | ||
| trip_type | Yes | ||
| itineraries | Yes | ||
| result_count | Yes | ||
| google_flights_url | Yes | Open this link to view or book on Google Flights. |