Skip to main content
Glama

resolve_airport

Read-only

Resolve an airport from an ICAO/IATA code or partial name using a bundled offline OurAirports database—no API credits or credentials required.

Instructions

Resolve an airport from an ICAO/IATA code or a name fragment.

Offline and free: reads the bundled OurAirports reference database, so it
costs no API credits and works with no credentials configured.

Args:
    query: ICAO (ESGG), IATA (GOT), or part of an airport name.
    limit: Maximum matches to return (1-20).

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.11.0
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cache": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "hit": {
      +            "const": true
      +          },
      +          "scope": {
      +            "enum": [
      +              "public",
      +              "private"
      +            ]
      +          },
      +          "ttl_ms": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "hit",
      +          "ttl_ms",
      +          "scope"
      +        ],
      +        "type": "object"
      +      },
      +      "matches": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "country": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "elevation_ft": {
      +              "type": [
      +                "integer",
      +                "null"
      +              ]
      +            },
      +            "iata": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "icao": {
      +              "type": "string"
      +            },
      +            "latitude": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "longitude": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "municipality": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "type": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "icao",
      +            "iata",
      +            "name",
      +            "type",
      +            "municipality",
      +            "country",
      +            "latitude",
      +            "longitude",
      +            "elevation_ft"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "query": {
      +        "type": "string"
      +      },
      +      "source": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "kind": {
      +            "type": "string"
      +          },
      +          "licence": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "licence",
      +          "kind"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "query",
      +      "matches",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "description": "Machine-readable; stable across releases.",
      +            "type": "string"
      +          },
      +          "details": {
      +            "type": "object"
      +          },
      +          "hint": {
      +            "description": "What to do next.",
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "retry_after_s": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"resolve_airportDictOutput"
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, but the description still adds real context: it reads a bundled OurAirports reference database, costs no API credits, and works without credentials. It does not discuss ambiguity handling or result ordering, but the added operational context is substantive.

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

Conciseness4/5

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

Front-loaded with the purpose in the first sentence, then the offline/no-credentials context, then the argument docs. Slight redundancy between 'Offline and free' and 'costs no API credits', but nothing is wasted enough to hurt readability.

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 two-parameter lookup with a bundled dataset and an output schema that documents return values, this covers what an agent needs to call it correctly. The remaining gap is behavioral: no note on what happens with ambiguous or zero matches.

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 description coverage is 0%, so the description carries the burden, and it does well: it enumerates the three accepted query formats with concrete examples (ESGG, GOT, name fragment) and states the limit range of 1-20. It omits the default limit value of 5 and does not clarify whether limit applies to name-fragment matches only, which keeps it below a 5.

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 and resource (resolve an airport) plus the accepted identifier forms: ICAO code, IATA code, or name fragment. It does not mention the sibling search_airports, so an agent must infer which lookup tool to prefer when both could apply.

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

Usage Guidelines3/5

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

The description implies a usage condition by noting it is offline, free, and requires no credentials, which is useful when the agent wants to avoid API credits. However, it gives no explicit when-not guidance and does not route the agent among the many airport-related siblings.

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