search_airports
Find airports by IATA code or city name. Optionally filter by country to get precise results.
Instructions
Search for airports by IATA code or city name.
Args: query: IATA code (e.g., 'SJC') or city name (e.g., 'San Jose') country: Optional ISO country code to filter by (e.g., 'US', 'JP') query_type: Type of query - 'iata' for IATA codes, 'city' for city names, 'auto' to detect
Returns: Formatted string with airport information
Raises: No exceptions are raised directly; errors are returned as formatted strings.
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": {
"query": "<query>"
},
"name": "search_airports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| country | No | ||
| query_type | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |