getFlightPriceByCities
Retrieve flight prices by specifying departure and arrival cities using IATA codes and a departure date in YYYY-MM-DD format. Ideal for comparing airfare between specific locations.
Instructions
Get flight price information by departure city, arrival city, and departure date. All city codes must be valid IATA 3-letter codes (e.g. HFE for Hefei, CAN for Guangzhou). Date must be in YYYY-MM-DD format.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
arr_city | Yes | Arrival city IATA 3-letter code (e.g. CAN for Guangzhou) | |
dep_city | Yes | Departure city IATA 3-letter code (e.g. HFE for Hefei) | |
dep_date | Yes | Departure 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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"arr_city": {
"description": "Arrival city IATA 3-letter code (e.g. CAN for Guangzhou)",
"maxLength": 3,
"minLength": 3,
"pattern": "^[A-Z]{3}$",
"type": "string"
},
"dep_city": {
"description": "Departure city IATA 3-letter code (e.g. HFE for Hefei)",
"maxLength": 3,
"minLength": 3,
"pattern": "^[A-Z]{3}$",
"type": "string"
},
"dep_date": {
"description": "Departure 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",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"type": "string"
}
},
"required": [
"dep_city",
"arr_city",
"dep_date"
],
"type": "object"
}