search_flights
Find available flights between airports by entering origin, destination, departure date, and optional return date for round trips.
Instructions
Search for available flights between two locations.
Args: origin: Origin airport code (e.g., "JFK", "LAX") destination: Destination airport code (e.g., "LHR", "CDG") departure_date: Departure date in YYYY-MM-DD format return_date: Optional return date in YYYY-MM-DD format for round trips passengers: Number of passengers (default: 1) cabin_class: Cabin class preference
Returns: Dictionary with flight search results
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 |
|---|---|---|---|
| origin | Yes | ||
| destination | Yes | ||
| departure_date | Yes | ||
| return_date | No | ||
| passengers | No | ||
| cabin_class | No | economy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||