Skip to main content
Glama

Get Airport

ourairports_get_airport
Read-onlyIdempotent

Fetch the full record for one airport resolved by ANY code — IATA (SEA), ICAO (KSEA), GPS, national/local, or the OurAirports ident — with its runways and radio frequencies inline. The single code param is resolved case-insensitively across all five identifier spaces (priority: ident, then ICAO, IATA, GPS, local). The response always echoes the airport's complete code set and a resolutionNote naming which space matched; when other airports carry the same code, the note names each one (ident, country, code space) and why this airport won, so a wrong resolution is self-correcting — pass the other airport's ident to fetch it. Absent codes are reported as null, never an error. Runway lengths are the full runway surface (displaced thresholds and overruns included), not usable takeoff or landing distance. Closed airports always resolve. OurAirports is community-edited — not authoritative for flight operations.

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": {
      "code": "<code>"
    },
    "name": "ourairports_get_airport"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesAny airport code: IATA (SEA), ICAO (KSEA), GPS code, national/local code, or the OurAirports ident. Case-insensitive; surrounding whitespace is ignored.
includeNoWhich related records to include inline. Defaults to both. Pass a subset to trim the response.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
airportNoThe resolved airport record, including its recorded links. Missing fields are null.
runwaysNoRunways for the airport. Empty when the airport has none OR when `runways` was not in `include` — check `included` to tell which.
dataAsOfNoWhen the OurAirports data behind this result was published (ISO 8601 UTC). It changes only when the data is refreshed; if it differs between pages of one query, restart from offset 0. Null when the snapshot date is unknown.
includedNoWhich related-record sets this response carries, echoing the effective `include` selection. A relation NOT listed here was omitted by `include` (its array is empty for that reason); a listed relation with an empty array genuinely has no records.
frequenciesNoRadio frequencies in MHz. Empty when the airport has none OR when `frequencies` was not in `include` — check `included` to tell which.
resolvedViaNoWhich identifier space the code matched: ident, icao_code, iata_code, gps_code, or local_code.
resolutionNoteNoHow the code resolved: the identifier space that matched and, when other airports carry the same code, why this one won (resolution priority or dataset row order) and each other airport's ident, country, and code space — pass that ident to fetch it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "airport",
      -      "resolvedVia",
      -      "resolutionNote",
      -      "included",
      -      "runways",
      -      "frequencies"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "airport",
      +      "resolvedVia",
      +      "resolutionNote",
      +      "included",
      +      "runways",
      +      "frequencies",
      +      "dataAsOf"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / dataAsOf
      Added value: +{
      +  "description": "When the OurAirports data behind this result was published (ISO 8601 UTC). It changes only when the data is refreshed; if it differs between pages of one query, restart from offset 0. Null when the snapshot date is unknown.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed13 schema fields changed
    • changedOutput schema / properties / airport / description
      Previous value: -"The resolved airport record. Codes the airport lacks are null."New value: +"The resolved airport record, including its recorded links. Missing fields are null."
    • addedOutput schema / properties / airport / properties / homeLink
      Added value: +{
      +  "description": "Recorded airport website link, or null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / airport / properties / keywords
      Added value: +{
      +  "description": "Recorded aliases and other search keywords, or null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / airport / properties / wikipediaLink
      Added value: +{
      +  "description": "Recorded Wikipedia link, or null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / airport / required
      Previous value: -[
      -  "id",
      -  "ident",
      -  "type",
      -  "name",
      -  "latitudeDeg",
      -  "longitudeDeg",
      -  "elevationFt",
      -  "continent",
      -  "isoCountry",
      -  "countryName",
      -  "isoRegion",
      -  "regionName",
      -  "municipality",
      -  "scheduledService",
      -  "icaoCode",
      -  "iataCode",
      -  "gpsCode",
      -  "localCode"
      -]New value: +[
      +  "id",
      +  "ident",
      +  "type",
      +  "name",
      +  "latitudeDeg",
      +  "longitudeDeg",
      +  "elevationFt",
      +  "continent",
      +  "isoCountry",
      +  "countryName",
      +  "isoRegion",
      +  "regionName",
      +  "municipality",
      +  "scheduledService",
      +  "icaoCode",
      +  "iataCode",
      +  "gpsCode",
      +  "localCode",
      +  "keywords",
      +  "wikipediaLink",
      +  "homeLink"
      +]
    • changedOutput schema / properties / runways / items / description
      Previous value: -"A runway with full-surface dimensions, surface, lighting, and per-end designators, headings, and displaced thresholds."New value: +"A runway with full-surface dimensions, surface, lighting, and per-end designators, center positions and elevations, headings, and displaced thresholds."
    • addedOutput schema / properties / runways / items / properties / heElevationFt
      Added value: +{
      +  "description": "Elevation at the high-end center in feet above mean sea level, or null.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / runways / items / properties / heLatitudeDeg
      Added value: +{
      +  "description": "Latitude at the high-end center in decimal degrees (WGS84), or null.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / runways / items / properties / heLongitudeDeg
      Added value: +{
      +  "description": "Longitude at the high-end center in decimal degrees (WGS84), or null.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / runways / items / properties / leElevationFt
      Added value: +{
      +  "description": "Elevation at the low-end center in feet above mean sea level, or null.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / runways / items / properties / leLatitudeDeg
      Added value: +{
      +  "description": "Latitude at the low-end center in decimal degrees (WGS84), or null.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / runways / items / properties / leLongitudeDeg
      Added value: +{
      +  "description": "Longitude at the low-end center in decimal degrees (WGS84), or null.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / runways / items / required
      Previous value: -[
      -  "id",
      -  "lengthFt",
      -  "widthFt",
      -  "surface",
      -  "lighted",
      -  "closed",
      -  "leIdent",
      -  "leHeadingDegT",
      -  "leDisplacedThresholdFt",
      -  "heIdent",
      -  "heHeadingDegT",
      -  "heDisplacedThresholdFt"
      -]New value: +[
      +  "id",
      +  "lengthFt",
      +  "widthFt",
      +  "surface",
      +  "lighted",
      +  "closed",
      +  "leIdent",
      +  "leLatitudeDeg",
      +  "leLongitudeDeg",
      +  "leElevationFt",
      +  "leHeadingDegT",
      +  "leDisplacedThresholdFt",
      +  "heIdent",
      +  "heLatitudeDeg",
      +  "heLongitudeDeg",
      +  "heElevationFt",
      +  "heHeadingDegT",
      +  "heDisplacedThresholdFt"
      +]
  3. Changed7 schema fields changed
    • changedOutput schema / properties / airport / properties / icaoCode / description
      Previous value: -"4-letter ICAO code, or null when the airport has none (~85% of fields)."New value: +"4-letter ICAO code, or null when the airport has none (~88% of fields)."
    • changedOutput schema / properties / resolutionNote / description
      Previous value: -"Human-readable note on how the code resolved, including an ambiguity warning for shared national codes."New value: +"How the code resolved: the identifier space that matched and, when other airports carry the same code, why this one won (resolution priority or dataset row order) and each other airport's ident, country, and code space — pass that ident to fetch it."
    • changedOutput schema / properties / runways / items / description
      Previous value: -"A runway with dimensions, surface, lighting, and end designators/headings."New value: +"A runway with full-surface dimensions, surface, lighting, and per-end designators, headings, and displaced thresholds."
    • addedOutput schema / properties / runways / items / properties / heDisplacedThresholdFt
      Added value: +{
      +  "description": "Length of the displaced threshold at the high end (heIdent) in feet — part of lengthFt. Null when none is recorded.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / runways / items / properties / leDisplacedThresholdFt
      Added value: +{
      +  "description": "Length of the displaced threshold at the low end (leIdent) in feet — part of lengthFt. Null when none is recorded.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / runways / items / properties / lengthFt / description
      Previous value: -"Runway length in feet, or null when unknown."New value: +"Length of the full runway surface in feet, including displaced thresholds and overrun areas — not the usable takeoff or landing distance. Null when unknown."
    • changedOutput schema / properties / runways / items / required
      Previous value: -[
      -  "id",
      -  "lengthFt",
      -  "widthFt",
      -  "surface",
      -  "lighted",
      -  "closed",
      -  "leIdent",
      -  "leHeadingDegT",
      -  "heIdent",
      -  "heHeadingDegT"
      -]New value: +[
      +  "id",
      +  "lengthFt",
      +  "widthFt",
      +  "surface",
      +  "lighted",
      +  "closed",
      +  "leIdent",
      +  "leHeadingDegT",
      +  "leDisplacedThresholdFt",
      +  "heIdent",
      +  "heHeadingDegT",
      +  "heDisplacedThresholdFt"
      +]
  4. Changed40 schema fields changed
    • removedOutput schema / properties / airport / properties / continent / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / continent / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / countryName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / countryName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / elevationFt / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / elevationFt / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / gpsCode / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / gpsCode / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / iataCode / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / iataCode / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / icaoCode / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / icaoCode / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / isoCountry / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / isoCountry / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / isoRegion / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / isoRegion / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / localCode / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / localCode / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / municipality / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / municipality / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airport / properties / regionName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airport / properties / regionName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / frequencies / items / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / frequencies / items / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / frequencies / items / properties / frequencyMhz / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / frequencies / items / properties / frequencyMhz / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / heHeadingDegT / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / heHeadingDegT / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / heIdent / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / heIdent / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / leHeadingDegT / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / leHeadingDegT / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / leIdent / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / leIdent / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / lengthFt / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / lengthFt / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / surface / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / surface / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / runways / items / properties / widthFt / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / runways / items / properties / widthFt / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  5. Changed6 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 / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "airport",
      +      "resolvedVia",
      +      "resolutionNote",
      +      "included",
      +      "runways",
      +      "frequencies"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `unknown_code`: No airport matched the supplied code in any identifier space (IATA/ICAO/GPS/local/ident). Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "unknown_code"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "airport",
      -  "resolvedVia",
      -  "resolutionNote",
      -  "included",
      -  "runways",
      -  "frequencies"
      -]
  6. Changed5 schema fields changed
    • changedInput schema / properties / code / description
      Previous value: -"Any airport code: IATA (SEA), ICAO (KSEA), GPS code, national/local code, or the OurAirports ident. Case-insensitive."New value: +"Any airport code: IATA (SEA), ICAO (KSEA), GPS code, national/local code, or the OurAirports ident. Case-insensitive; surrounding whitespace is ignored."
    • changedOutput schema / properties / frequencies / description
      Previous value: -"Radio frequencies in MHz (empty array when none recorded, or when frequencies were not requested in `include`)."New value: +"Radio frequencies in MHz. Empty when the airport has none OR when `frequencies` was not in `include` — check `included` to tell which."
    • addedOutput schema / properties / included
      Added value: +{
      +  "description": "Which related-record sets this response carries, echoing the effective `include` selection. A relation NOT listed here was omitted by `include` (its array is empty for that reason); a listed relation with an empty array genuinely has no records.",
      +  "items": {
      +    "enum": [
      +      "runways",
      +      "frequencies"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / runways / description
      Previous value: -"Runways for the airport (empty array when none recorded, or when runways were not requested in `include`)."New value: +"Runways for the airport. Empty when the airport has none OR when `runways` was not in `include` — check `included` to tell which."
    • changedOutput schema / required
      Previous value: -[
      -  "airport",
      -  "resolvedVia",
      -  "resolutionNote",
      -  "runways",
      -  "frequencies"
      -]New value: +[
      +  "airport",
      +  "resolvedVia",
      +  "resolutionNote",
      +  "included",
      +  "runways",
      +  "frequencies"
      +]
  7. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say read-only/idempotent/closed-world, but the description adds resolution priority order, the echoing of the full code set, a resolutionNote disclosing why a match won, null-instead-of-error behavior for absent codes, and the caveat that runway lengths are full surface rather than usable distance. That is genuine behavioral context beyond structured fields, including an honest reliability disclaimer.

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?

It is front-loaded with the core action and resolution semantics before the caveats, and nearly every clause carries actionable information. The single dense paragraph packs several independent facts (priority, disambiguation, nulls, runway semantics, disclaimer) that could be split for faster scanning.

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

Completeness5/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 an output schema already present, the description covers everything an agent needs: accepted identifier spaces, match precedence, ambiguity handling, null behavior, and data-quality caveats. Return-shape detail is appropriately delegated to the output schema while resolution semantics are explained here.

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 coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: the five identifier spaces, the case-insensitive matching rule, and the exact precedence (ident, then ICAO, IATA, GPS, local). The optional `include` trimming parameter is left to the schema, which documents it adequately.

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?

"Fetch the full record for one airport resolved by ANY code" names a specific verb, a single-resource scope, and the set of accepted identifiers. It also distinguishes itself from the search/find siblings by emphasizing single-airport resolution and inline runways/frequencies, so the agent can tell which tool to reach for.

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?

The description gives strong situational context: use it when you have any form of airport code, including closed airports, and it explains how to recover from a same-code collision by passing the other airport's ident. It stops short of explicitly naming a sibling (e.g., search_airports) for the case where no code is known, so routing in that direction is left implicit.

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.