Airport Distance
AirportDistanceAirport Distance: Airport Distance calculates the great-circle distance between two airports, plus estimated travel time, using their 3-letter IATA codes. It provides route distance in miles and kilometers plus estimated flight duration. (Cost: 2 credits)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "AirportDistance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iata1 | No | The IATA code of the first airport (e.g. JFK) | |
| iata2 | No | The IATA code of the second airport (e.g. LAX) | |
| icao1 | No | The ICAO code of the first airport (e.g. KJFK) | |
| icao2 | No | The ICAO code of the second airport (e.g. KLAX) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |