Skip to main content
Glama

search_airports

Read-onlyIdempotent

Search 7,906 global airports by city name, airport name, metro code (e.g. NYC, LON, TYO), or partial IATA code to resolve valid 3-letter IATA airport codes before calling route tools.

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 matching airports to return (1-20, default 8).
queryYesCity name, airport name, metro code (e.g. NYC, LON, TYO), or partial IATA code (2-80 chars).
countryNoOptional 2-letter ISO country code (e.g. US, JP, GB) or country name filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value by disclosing the dataset size and that results are valid IATA codes, but says nothing about match ordering, partial-match behavior, or what to do when multiple airports share a city.

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 sentence with the dataset scope and searchable fields front-loaded, followed immediately by the intended workflow use. No filler or redundant phrasing.

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 three-parameter lookup with no output schema, the description covers input forms, scale, and the purpose of the result (IATA codes). It could say slightly more about the shape of returned entries (e.g., whether city and country come back alongside the code), but nothing essential to invoking it correctly is missing.

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 query, country, and limit are all documented with examples and bounds. The description only restates those same query forms and adds no syntax or filtering nuance beyond the schema, so the baseline 3 applies.

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?

Uses a specific verb (Search) plus a precisely scoped resource (7,906 global airports) and enumerates the accepted query forms. It also states the downstream purpose — resolving valid 3-letter IATA codes before calling route tools — which separates it cleanly from siblings like calculate_multi_leg_route or get_airport_hub_profile.

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

Usage Guidelines4/5

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

Gives clear when-to-use context by framing this as a prerequisite step 'before calling route tools,' which tells an agent where it sits in a workflow. It stops short of naming an alternative resolution tool or stating when-not to use it, so it is a strong 4 rather than a 5.

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.

Resources