searchFlightsByDepArr
Find flights between airports or cities by entering departure and arrival IATA codes and a specific date in YYYY-MM-DD format. Use city codes for locations with multiple airports.
Instructions
Search for flights between airports or cities by date. For cities with multiple airports, use depcity and arrcity parameters; otherwise use dep and arr parameters. Date must be in YYYY-MM-DD format. For today's date, use the getTodayDate tool. All airport/city codes must be valid IATA 3-letter codes (e.g.BJS for city of Beijing, PEK for Beijing Capital Airport).
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": {
"date": "<date>"
},
"name": "searchFlightsByDepArr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arr | No | Arrival airport IATA 3-letter code (e.g. SHA for Shanghai, HFE for Hefei) | |
| arrcity | No | Arrival city IATA 3-letter code (e.g. SHA for Shanghai, BJS for Beijing) | |
| date | Yes | Flight date in YYYY-MM-DD format. IMPORTANT: If user input only cotains month and date, you should use getTodayDate tool to get the year. For today's date, use getTodayDate tool instead of hardcoding | |
| dep | No | Departure airport IATA 3-letter code (e.g. PEK for Beijing, CAN for Guangzhou) | |
| depcity | No | Departure city IATA 3-letter code (e.g. BJS for Beijing, CAN for Guangzhou) |