Skip to main content
Glama

Search airports

search_airports
Read-only

Find airport IATA codes by city, airport name, metro area, or code.

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

NameRequiredDescriptionDefault
limitNoMaximum number of airport results to return (1-20).
queryYesSearch query for airport name, city, metro area, or IATA code (at least 2 characters).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • changedInput schema / properties / limit / default
      Previous value: -5New value: +10
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of airport results to return."New value: +"Maximum number of airport results to return (1-20)."
    • changedInput schema / properties / limit / maximum
      Previous value: -10New value: +20
    • changedInput schema / properties / query / description
      Previous value: -"Search query for airport names, city names, or airport codes."New value: +"Search query for airport name, city, metro area, or IATA code (at least 2 characters)."
    • addedInput schema / properties / query / minLength
      Added value: +2
    • addedOutput schema / $defs
      Added value: +{
      +  "AirportModel": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "city": {
      +        "title": "City",
      +        "type": "string"
      +      },
      +      "code": {
      +        "title": "Code",
      +        "type": "string"
      +      },
      +      "country": {
      +        "title": "Country",
      +        "type": "string"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "name",
      +      "city",
      +      "country"
      +    ],
      +    "title": "AirportModel",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / properties / result / description
      Removed value: -"List of airports matching the query."
    • addedOutput schema / properties / result / items / $ref
      Added value: +"#/$defs/AirportModel"
    • removedOutput schema / properties / result / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / result / items / description
      Removed value: -"Single airport result matching the query."
    • removedOutput schema / properties / result / items / properties
      Removed value: -{
      -  "city": {
      -    "description": "City served by the airport.",
      -    "type": "string"
      -  },
      -  "code": {
      -    "description": "Three-letter airport IATA code.",
      -    "type": "string"
      -  },
      -  "country": {
      -    "description": "Country where the airport is located.",
      -    "type": "string"
      -  },
      -  "name": {
      -    "description": "Full airport name.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / result / items / required
      Removed value: -[
      -  "code",
      -  "name",
      -  "city",
      -  "country"
      -]
    • removedOutput schema / properties / result / items / type
      Removed value: -"object"
    • addedOutput schema / properties / result / title
      Added value: +"Result"
    • addedOutput schema / title
      Added value: +"AirportsOutputModel"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety and external-lookup profile is covered. The description adds only that results are airport codes, and says nothing about match behavior (fuzzy vs exact), multiple matches per metro area, or result ordering.

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?

A single front-loaded sentence naming the output and the accepted inputs, with no filler or redundancy. Nothing needs trimming and the key information arrives first.

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

Completeness4/5

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

For a simple, fully-schema-documented lookup with an output schema and complete annotations, the description covers the essentials. Only match-behavior and result-set expectations are missing, which are minor for this complexity.

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

Parameters3/5

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

Schema description coverage is 100%, so both the query facets and the 1-20 limit are already documented in the schema. The description restates the query facets without adding format or syntax detail, so baseline 3 applies.

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

Purpose4/5

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

States a specific verb ('Find') and a specific resource ('airport IATA codes') plus the four matching facets (city, airport name, metro area, code). This clearly separates it from siblings like search_flights or search_cheapest_dates, though it never names an alternative explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention that the returned IATA codes are meant to feed into flight or fare searches. The lookup intent is only inferable from the description's wording, leaving the agent to guess its place in a multi-step flow.

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.