Skip to main content
Glama

airport_weather

Read-only

Retrieve current METAR and TAF conditions for an airport, plus impact flags, without credentials or OpenSky credit use.

Instructions

Return the latest METAR and TAF for an airport, plus impact flags.

Needs no credentials and spends no OpenSky credits.

Args:
    airport: ICAO code, e.g. ESGG.

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": {
      "airport": "<airport>"
    },
    "name": "airport_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
airportYes

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": {
      +      "airport": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "icao": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "icao",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "cache": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "hit": {
      +            "const": true
      +          },
      +          "scope": {
      +            "enum": [
      +              "public",
      +              "private"
      +            ]
      +          },
      +          "ttl_ms": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "hit",
      +          "ttl_ms",
      +          "scope"
      +        ],
      +        "type": "object"
      +      },
      +      "impact_flags": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "latest_metar": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "age_s": {
      +            "description": "null: the age cannot be judged.",
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "current": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "age_s",
      +          "current"
      +        ],
      +        "type": "object"
      +      },
      +      "metar": {
      +        "items": {
      +          "description": "One METAR or TAF as decoded from NOAA's JSON.",
      +          "properties": {
      +            "altimeter_hpa": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "clouds": {
      +              "description": "null: NOAA sent no cloud group. []: it sent an empty one.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "base_ft": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "cover": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "cover",
      +                  "base_ft"
      +                ],
      +                "type": "object"
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "dewpoint_c": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "flight_category": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "observation_time": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "product": {
      +              "enum": [
      +                "metar",
      +                "taf"
      +              ]
      +            },
      +            "raw_text": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "station_id": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "temperature_c": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "vertical_visibility_ft": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "visibility_at_least": {
      +              "type": "boolean"
      +            },
      +            "visibility_statute_mi": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_dir_deg": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_gust_kt": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_speed_kt": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_variable": {
      +              "type": "boolean"
      +            },
      +            "wx_string": {
      +              "description": "As the upstream sent it; not coerced."
      +            }
      +          },
      +          "required": [
      +            "station_id",
      +            "observation_time",
      +            "raw_text",
      +            "product"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ok": {
      +        "const": true
      +      },
      +      "source": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "licence": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "licence"
      +        ],
      +        "type": "object"
      +      },
      +      "taf": {
      +        "items": {
      +          "description": "One METAR or TAF as decoded from NOAA's JSON.",
      +          "properties": {
      +            "altimeter_hpa": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "clouds": {
      +              "description": "null: NOAA sent no cloud group. []: it sent an empty one.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "base_ft": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "cover": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "cover",
      +                  "base_ft"
      +                ],
      +                "type": "object"
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "dewpoint_c": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "flight_category": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "observation_time": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "product": {
      +              "enum": [
      +                "metar",
      +                "taf"
      +              ]
      +            },
      +            "raw_text": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "station_id": {
      +              "description": "As the upstream sent it; not coerced."
      +            },
      +            "temperature_c": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "vertical_visibility_ft": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "visibility_at_least": {
      +              "type": "boolean"
      +            },
      +            "visibility_statute_mi": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_dir_deg": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_gust_kt": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_speed_kt": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "wind_variable": {
      +              "type": "boolean"
      +            },
      +            "wx_string": {
      +              "description": "As the upstream sent it; not coerced."
      +            }
      +          },
      +          "required": [
      +            "station_id",
      +            "observation_time",
      +            "raw_text",
      +            "product"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "unknowns": {
      +        "description": "What this answer cannot show. Non-empty means: do not conclude normality.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "upstream_time_epoch": {
      +        "description": "NOAA's Date header. null: it sent none, and ages are unknown.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "upstream_time_epoch",
      +      "airport",
      +      "metar",
      +      "taf",
      +      "latest_metar",
      +      "impact_flags",
      +      "unknowns",
      +      "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: -"airport_weatherDictOutput"
  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 and openWorldHint, so the safety profile is covered. The description adds value beyond them by disclosing that the call is credential-free and consumes no OpenSky credits, which is decision-relevant cost information an agent cannot get from annotations. It does not characterize the 'impact flags' payload, but an output schema exists to carry that.

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?

Two front-loaded sentences carry the core purpose and the cost caveat, followed by a short Args block that earns its place by adding the ICAO format detail. Slightly verbose in the docstring-style formatting, but no wasted prose.

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 one-parameter read tool with an output schema present, the description covers purpose, cost/credential behavior, and input format. The only gap is that 'impact flags' is unexplained, but the output schema is the appropriate place for that detail.

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 must compensate for the single parameter, and it does: 'ICAO code, e.g. ESGG' specifies both the code system and a concrete format example, which the bare schema ('Airport', type string) does not convey. That is meaningful added semantics for the one input.

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?

The description opens with a specific verb and resource: 'Return the latest METAR and TAF for an airport, plus impact flags.' An agent immediately knows this is an aviation-weather retrieval tool. It does not explicitly contrast itself with the sibling weather_overview, so it stops short of a 5.

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?

'Needs no credentials and spends no OpenSky credits' gives a real selection signal (prefer this when credit budget matters), but there is no explicit when-to-use or when-not-to-use guidance relative to weather_overview or the airport_* siblings. Usage is implied rather than directed.

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