Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Airport lookup by IATA or ICAO code: name, coordinates, elevation, time zone; nearest airports

airport_lookup
Read-onlyIdempotent

Airport lookup by IATA or ICAO code: get the airport's name, city, country, ISO 3166-2 region code, WGS-84 coordinates, elevation and IANA time zone, or find the nearest airports to a coordinate within a radius. Covers every airport worldwide that holds a three-letter IATA code and scheduled service. Returns the code type that matched and the distance in kilometres for proximity results. Price: $0.05 per successful call, paid over x402 (USDC on Base).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "airport_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo3-letter IATA or 4-letter ICAO code, case-insensitive. Accepted: a 3-letter IATA or 4-letter ICAO code.
nearNolat,lon to search around. Accepted: lat,lon.
limitNoMaximum results 1-25, default 5. Only with near. Accepted: integer 1-25.
countryNoISO 3166-1 alpha-2 filter. Accepted: an ISO 3166-1 alpha-2 code.
radius_kmNoSearch radius in km, 1-1000, default 100. Only with near. Accepted: number 1-1000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / limit / anyOf
      Added value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / limit / type
      Removed value: -"string"
    • changedInput schema / properties / radius_km / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, and the description stays consistent with them. On top of that it adds genuinely non-obvious behavior: the coverage boundary (IATA-coded airports with scheduled service only), what the response contains (matched code type, distance in km for proximity), and a cost/access constraint ($0.05 per successful call via x402/USDC on Base) that materially affects invocation decisions.

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 primary use case and tightly packed with concrete facts; each clause carries information. The pricing/payment sentence is a slight tail-end tack-on but is justified by its decision impact, and the title largely restates the first sentence.

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

Completeness3/5

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

There is no output schema, and while the description names the returned fields and two response extras, it never states what happens on a miss (no matching code, empty radius) or whether a failed lookup is still billed. With zero required parameters across two mutually exclusive modes, it also never explicitly says the agent must supply either code or near — a real gap for a 5-parameter tool.

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 every parameter is already documented in the schema, including code formats, the lat,lon form, limit bounds 1-25 and radius_km bounds 1-1000. The description adds only the conceptual split between code-based and proximity search and omits any mention of the country filter or the limit cap, so it does not meaningfully exceed the schema's own documentation.

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?

The description opens with a specific verb+resource ('Airport lookup by IATA or ICAO code') and enumerates exactly what is returned (name, city, country, region code, WGS-84 coordinates, elevation, IANA time zone), plus a clearly distinguished second mode ('find the nearest airports to a coordinate within a radius'). An agent can tell this apart from geo_distance or country_lookup without consulting any schema.

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?

It clearly establishes the two usage modes — resolve a code, or proximity search around a coordinate within a radius — and states the dataset scope ('every airport worldwide that holds a three-letter IATA code and scheduled service'), which implicitly tells the agent when lookups will fail. It stops short of naming alternatives (e.g. geo_distance) or stating that only one of code/near should be supplied.

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.