Skip to main content
Glama

Search Airports

search_airports
Read-onlyIdempotent

Look up an airport by city name (e.g. "Tokyo", "New York", "London") OR by 3-letter IATA code (e.g. "JFK", "LHR"). City lookup uses a bundled map of the top ~150 international hubs; cities with multiple airports return all primary ones. For airports not in the bundle, pass an IATA code or use the aviationstack pack for full-text name/country search.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "New York"
    },
    "name": "search_airports"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesCity name (e.g. "Chicago", "London") or 3-letter IATA code (e.g. "ORD")

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "city": {
      +        "type": "string"
      +      },
      +      "count": {
      +        "description": "Number of results returned",
      +        "type": "number"
      +      },
      +      "found": {
      +        "description": "Present and true on an answer; a miss is the found:false branch.",
      +        "enum": [
      +          true
      +        ],
      +        "type": "boolean"
      +      },
      +      "matched_by": {
      +        "type": "string"
      +      },
      +      "page": {
      +        "description": "Current page number",
      +        "type": "number"
      +      },
      +      "results": {
      +        "description": "List of airports matching the search query",
      +        "items": {
      +          "properties": {
      +            "altitude_ft": {
      +              "description": "Altitude in feet",
      +              "type": "number"
      +            },
      +            "city": {
      +              "description": "City where airport is located",
      +              "type": "string"
      +            },
      +            "country": {
      +              "description": "Country where airport is located",
      +              "type": "string"
      +            },
      +            "iata": {
      +              "description": "Three-letter IATA code",
      +              "type": "string"
      +            },
      +            "icao": {
      +              "description": "Four-letter ICAO code",
      +              "type": "string"
      +            },
      +            "latitude": {
      +              "description": "Latitude coordinate",
      +              "type": "number"
      +            },
      +            "longitude": {
      +              "description": "Longitude coordinate",
      +              "type": "number"
      +            },
      +            "name": {
      +              "description": "Airport name",
      +              "type": "string"
      +            },
      +            "timezone": {
      +              "description": "Airport timezone",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "results",
      +      "count"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      +    "properties": {
      +      "found": {
      +        "enum": [
      +          false
      +        ],
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "found"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "city": {
      -    "type": "string"
      -  },
      -  "count": {
      -    "description": "Number of results returned",
      -    "type": "number"
      -  },
      -  "matched_by": {
      -    "type": "string"
      -  },
      -  "page": {
      -    "description": "Current page number",
      -    "type": "number"
      -  },
      -  "results": {
      -    "description": "List of airports matching the search query",
      -    "items": {
      -      "properties": {
      -        "altitude_ft": {
      -          "description": "Altitude in feet",
      -          "type": "number"
      -        },
      -        "city": {
      -          "description": "City where airport is located",
      -          "type": "string"
      -        },
      -        "country": {
      -          "description": "Country where airport is located",
      -          "type": "string"
      -        },
      -        "iata": {
      -          "description": "Three-letter IATA code",
      -          "type": "string"
      -        },
      -        "icao": {
      -          "description": "Four-letter ICAO code",
      -          "type": "string"
      -        },
      -        "latitude": {
      -          "description": "Latitude coordinate",
      -          "type": "number"
      -        },
      -        "longitude": {
      -          "description": "Longitude coordinate",
      -          "type": "number"
      -        },
      -        "name": {
      -          "description": "Airport name",
      -          "type": "string"
      -        },
      -        "timezone": {
      -          "description": "Airport timezone",
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "results",
      -  "count"
      -]
  2. Changed3 schema fields changed
    • addedOutput schema / properties / city
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / matched_by
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "results",
      -  "count",
      -  "page"
      -]New value: +[
      +  "results",
      +  "count"
      +]
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "New York"
      -  },
      -  {
      -    "page": 2,
      -    "query": "London"
      -  }
      -]New value: +[
      +  {
      +    "query": "New York"
      +  },
      +  {
      +    "query": "London"
      +  }
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"3-letter IATA airport code (e.g. \"DEN\" for Denver International)"New value: +"City name (e.g. \"Chicago\", \"London\") or 3-letter IATA code (e.g. \"ORD\")"
  5. Changed2 schema fields changed
    • removedInput schema / properties / page
      Removed value: -{
      -  "description": "Page number for pagination (default: 1)",
      -  "type": "number"
      -}
    • changedInput schema / properties / query / description
      Previous value: -"Airport name, city, or country to search for"New value: +"3-letter IATA airport code (e.g. \"DEN\" for Denver International)"
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "description": "Number of results returned",
      +      "type": "number"
      +    },
      +    "page": {
      +      "description": "Current page number",
      +      "type": "number"
      +    },
      +    "results": {
      +      "description": "List of airports matching the search query",
      +      "items": {
      +        "properties": {
      +          "altitude_ft": {
      +            "description": "Altitude in feet",
      +            "type": "number"
      +          },
      +          "city": {
      +            "description": "City where airport is located",
      +            "type": "string"
      +          },
      +          "country": {
      +            "description": "Country where airport is located",
      +            "type": "string"
      +          },
      +          "iata": {
      +            "description": "Three-letter IATA code",
      +            "type": "string"
      +          },
      +          "icao": {
      +            "description": "Four-letter ICAO code",
      +            "type": "string"
      +          },
      +          "latitude": {
      +            "description": "Latitude coordinate",
      +            "type": "number"
      +          },
      +          "longitude": {
      +            "description": "Longitude coordinate",
      +            "type": "number"
      +          },
      +          "name": {
      +            "description": "Airport name",
      +            "type": "string"
      +          },
      +          "timezone": {
      +            "description": "Airport timezone",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results",
      +    "count",
      +    "page"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "New York"
      +  },
      +  {
      +    "page": 2,
      +    "query": "London"
      +  }
      +]
  8. First observed

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, but the description adds genuinely new context: the city map is a bundled set of roughly 150 hubs, and multi-airport cities return all primary airports. It does not discuss empty-result behavior or result ranking, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the primary verb and accepted inputs, followed by the coverage caveat and the fallback path. Parenthetical examples are illustrative rather than padding, and nothing is repeated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter lookup with an output schema and full annotations, nothing material is missing: input forms, coverage limits, multiplicity of results, and the escape hatch for uncovered airports are all covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and already documents the single query parameter, so the baseline would be 3. The description earns extra credit by explaining the accepted value forms beyond the schema text and clarifying the return shape for ambiguous city names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (look up) and resource (airport), plus the two accepted key types with concrete examples. It also names the sibling-adjacent alternative (aviationstack pack) and implicitly distinguishes itself from full-text search tools, so an agent can select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes between the two modes (city name vs. 3-letter IATA code) and states what to do when the city is not covered: pass an IATA code or switch to the aviationstack pack for name/country search. That is when-to-use, when-not-to-use, and the alternative in a single pass.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.