Search Dates
search_datesFind the cheapest travel dates between two airports within a date range. Supports one-way and round-trip searches for flexible trip planning.
Instructions
Find the cheapest travel dates between two airports within a date range.
Returns a list of dates with their prices, useful for flexible travel planning. Supports both one-way and round-trip searches.
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>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "search_dates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Departure airport IATA code(s), comma-separated for multiple (e.g., 'JFK' or 'JFK,LGA') | |
| destination | Yes | Arrival airport IATA code(s), comma-separated for multiple (e.g., 'LHR' or 'LHR,CDG') | |
| start_date | Yes | Start of date range in YYYY-MM-DD format | |
| end_date | Yes | End of date range in YYYY-MM-DD format | |
| trip_duration | No | Trip duration in days for round-trips | |
| is_round_trip | No | Search for round-trip flights | |
| airlines | No | Filter by airline IATA codes (e.g., ['BA', 'AA']) | |
| cabin_class | No | Cabin class: ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRST | ECONOMY |
| max_stops | No | Maximum stops: ANY, NON_STOP, ONE_STOP, TWO_PLUS_STOPS | ANY |
| departure_window | No | Departure time window in 'HH-HH' 24h format (e.g., '6-20') | |
| sort_by_price | No | Sort results by price (lowest first) | |
| passengers | No | Number of adult passengers |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||