Skip to main content
Glama

Wingman flight search

Find airports

find_airports
Read-onlyIdempotent

Find the IATA codes of airports and cities by a city, airport or country name, for search_flights. A city's code (marked all_airports) covers every airport of that city.

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": "find_airports"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesA city, airport or country name, or a code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/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 safety and determinism are covered. The description adds behavior annotations cannot express: the response is IATA codes, and a city entry marked all_airports aggregates all airports in that city — a detail an agent needs to interpret results correctly.

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?

Two sentences, zero filler, with the core purpose front-loaded and the interpretive caveat about all_airports second. Every clause carries information an agent would otherwise have to guess.

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?

With no output schema, the description still communicates return semantics (IATA codes and the all_airports marker), which is the main risk area for a single-parameter lookup. What remains unstated — multi-result behavior and handling of no matches — is minor for a tool this simple.

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% and the single parameter's description already lists "city, airport or country name, or a code," which the tool description largely restates. The all_airports clarification concerns the result set rather than the parameter, so no substantial meaning is added beyond the schema. 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?

States a specific verb and resource ("Find the IATA codes of airports and cities") plus the accepted query vocabulary, and ties the tool to its consumer, search_flights, so an agent can tell it is a lookup feeder rather than a flight search. The output form (IATA codes) is explicit, which is uncommon and useful.

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?

"for search_flights" explicitly positions this as the prerequisite lookup step before calling the sibling, giving clear usage context. It stops short of any exclusion (e.g., what to do when no match is found or when to query by code vs name), but no misleading guidance is present.

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