Skip to main content
Glama

Get Departures

get_departures
Read-onlyIdempotent

Aircraft currently DEPARTING an airport, live ADS-B, no key required. Pass an ICAO code (e.g. "KSFO", "EGLL") and get outbound traffic climbing out of the field, nearest first, with callsign, registration, aircraft type, altitude, climb rate and distance out. Use for "what just took off from ", "outbound traffic from ". This is a live picture, not a scheduled timetable. (Historical windows via begin/end require OpenSky credentials and only work when self-hosting, OpenSky is unreachable from cloud egress.)

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "end": 1609545600,
      "begin": 1609459200,
      "airport": "KLAX"
    },
    "name": "get_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoOPTIONAL historical window end (Unix seconds, max 7 days after begin). Omit for live data.
beginNoOPTIONAL historical window start (Unix seconds). Requires OpenSky credentials and only works when self-hosting; omit for live data.
limitNoMax aircraft to return (1-200, default 50), nearest first.
airportYesICAO airport code, e.g. "KJFK", "EGLL", "KSFO" (4 letters, not the 3-letter IATA code)
radius_nmNoHow far out to look, nautical miles (1-250, default 40).

Output Schema

NameRequiredDescriptionDefault
countYesNumber of departure flights found
flightsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / airport / description
      Previous value: -"ICAO airport code, e.g. \"KJFK\", \"EGLL\" (not IATA \"JFK\")"New value: +"ICAO airport code, e.g. \"KJFK\", \"EGLL\", \"KSFO\" (4 letters, not the 3-letter IATA code)"
    • changedInput schema / properties / begin / description
      Previous value: -"Start of window, Unix timestamp in seconds"New value: +"OPTIONAL historical window start (Unix seconds). Requires OpenSky credentials and only works when self-hosting; omit for live data."
    • changedInput schema / properties / end / description
      Previous value: -"End of window, Unix timestamp in seconds (max 7 days after begin)"New value: +"OPTIONAL historical window end (Unix seconds, max 7 days after begin). Omit for live data."
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max aircraft to return (1-200, default 50), nearest first.",
      +  "type": "number"
      +}
    • addedInput schema / properties / radius_nm
      Added value: +{
      +  "description": "How far out to look, nautical miles (1-250, default 40).",
      +  "type": "number"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "airport",
      -  "begin",
      -  "end"
      -]New value: +[
      +  "airport"
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / airport / description
      Previous value: -"ICAO airport code (e.g. \"KLAX\", \"EGLL\")"New value: +"ICAO airport code, e.g. \"KJFK\", \"EGLL\" (not IATA \"JFK\")"
    • changedInput schema / properties / begin / description
      Previous value: -"Start of time range as Unix timestamp (seconds)"New value: +"Start of window, Unix timestamp in seconds"
    • changedInput schema / properties / end / description
      Previous value: -"End of time range as Unix timestamp (seconds, max 7 days after begin)"New value: +"End of window, Unix timestamp in seconds (max 7 days after begin)"
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "description": "Number of departure flights found",
      +      "type": "number"
      +    },
      +    "flights": {
      +      "items": {
      +        "properties": {
      +          "arrival_airport": {
      +            "description": "Estimated arrival airport ICAO code",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "callsign": {
      +            "description": "Flight callsign (trimmed)",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "departure_airport": {
      +            "description": "Estimated departure airport ICAO code",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "first_seen": {
      +            "description": "Unix timestamp of first radar contact",
      +            "type": "number"
      +          },
      +          "icao24": {
      +            "description": "ICAO24 transponder address",
      +            "type": "string"
      +          },
      +          "last_seen": {
      +            "description": "Unix timestamp of last radar contact",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "icao24",
      +          "callsign",
      +          "first_seen",
      +          "last_seen",
      +          "departure_airport",
      +          "arrival_airport"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "count",
      +    "flights"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "airport": "KLAX",
      +    "begin": 1609459200,
      +    "end": 1609545600
      +  },
      +  {
      +    "airport": "KSFO",
      +    "begin": 1704067200,
      +    "end": 1704153600
      +  }
      +]
  5. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world and non-destructive, but the description adds substantive behavior beyond them: no API key required, results ordered nearest-first, fields returned, and the critical caveat that begin/end historical windows require OpenSky credentials and fail from cloud egress. That last point is a real operational constraint an agent cannot infer from the schema or annotations.

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?

Three sentences, front-loaded with the purpose and the ICAO example before the caveat. The trailing parenthetical about OpenSky credentials is long and partially duplicates the schema's begin description, which is the only wasted space.

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?

With an output schema covering return shape, full annotation coverage, and 100% schema description coverage, the description fills the remaining gaps: data freshness (live), ordering, keyless access, and the failure mode for historical windows. Nothing an agent needs to call this correctly is missing.

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 airport ICAO format, limit range, radius_nm default, and the begin/end credential restriction are all already documented per-parameter. The description adds only the nearest-first ordering nuance and a restatement of the credential caveat, so it sits at the baseline of 3 rather than adding new parameter meaning.

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+resource ("Aircraft currently DEPARTING an airport, live ADS-B") and adds scope qualifiers (live, outbound, nearest first). Combined with the explicit note that it is "not a scheduled timetable," an agent can immediately distinguish this from a schedules tool and from the arrivals sibling.

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?

Provides concrete routing phrases ("what just took off from <airport>", "outbound traffic from <airport>") and explains that historical queries go through begin/end but only work when self-hosting. It never names a sibling alternative such as get_arrivals for the inbound case, so the guidance is clear context without explicit exclusions.

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.