Skip to main content
Glama

Flight_get_aircraft_detail

Read-only

All flights for an aircraft plus derived aggregates used on the detail page: flights (newest first), byYear, byDistance, byCountry, airportVisits, visitHistory. Empty aggregates when no flights.

Input Schema

NameRequiredDescriptionDefault
aircraftIdYes

Output Schema

NameRequiredDescriptionDefault
byYearYes
flightsYes
byCountryYes
byDistanceYes
visitHistoryYes
airportVisitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed48 schema fields changed
    • removedOutput schema / properties / airportVisits / properties / airports / items / properties / airportName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airportVisits / properties / airports / items / properties / airportName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airportVisits / properties / airports / items / properties / city / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airportVisits / properties / airports / items / properties / city / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / airportVisits / properties / airports / items / properties / country / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / airportVisits / properties / airports / items / properties / country / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / flights / items / properties / arrival / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "municipality": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "timezone": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "municipality",
      -      "timezone"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "municipality": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "municipality",
      +      "timezone"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / flights / items / properties / arrivalAirport / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / arrivalAirport / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / arrivalCity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / arrivalCity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / arrivalCountry / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / arrivalCountry / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / arrivalSource / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / arrivalSource / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / averageSpeed / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / averageSpeed / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / flights / items / properties / departure / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "type": "string"
      -      },
      -      "municipality": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "timezone": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "municipality",
      -      "timezone"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "type": "string"
      +      },
      +      "municipality": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "municipality",
      +      "timezone"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / flights / items / properties / departureAirport / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / departureAirport / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / departureCity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / departureCity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / departureCountry / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / departureCountry / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / departureSource / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / departureSource / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / flightDistance / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / flightDistance / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / flightDuration / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / flightDuration / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / flightId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / flightId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / maxAltitude / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / maxAltitude / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / flights / items / properties / minAltitude / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / flights / items / properties / minAltitude / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / visitHistory / properties / visits / items / properties / airportName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / visitHistory / properties / visits / items / properties / airportName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / visitHistory / properties / visits / items / properties / city / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / visitHistory / properties / visits / items / properties / city / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / visitHistory / properties / visits / items / properties / country / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / visitHistory / properties / visits / items / properties / country / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / visitHistory / properties / visits / items / properties / departureTime / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / visitHistory / properties / visits / items / properties / departureTime / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / visitHistory / properties / visits / items / properties / stayDurationSeconds / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / visitHistory / properties / visits / items / properties / stayDurationSeconds / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / visitHistory / properties / visits / items / properties / timezone / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / visitHistory / properties / visits / items / properties / timezone / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: flights are ordered newest first, and aggregates come back empty rather than erroring when no flights exist. It says nothing about pagination or result volume limits, which matters for an aircraft with thousands of flights.

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 tight sentences with no filler, and the empty-aggregate edge case is stated up front. It does lead with return fields rather than purpose, but the whole thing is short enough that front-loading is not a real problem.

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?

With an output schema present, the description need not document return values, and it still names the aggregate keys and the empty-result behavior. Combined with read-only annotations, the definition is largely self-sufficient; the remaining gap is the undocumented aircraftId format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter aircraftId has 0% schema description coverage, so the description carries the full burden and only implies that it identifies the aircraft ('for an aircraft'). It never states the expected ID format (internal ID vs. registration/tail number) or where to obtain a valid value, which is the most likely source of a failed call.

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 clearly states the tool returns all flights for a single aircraft plus derived aggregates (byYear, byDistance, byCountry, airportVisits, visitHistory), which is a specific verb-and-resource statement. It does not, however, distinguish itself from overlapping siblings such as Flight_flights_by_year, Flight_flights_by_distance, or Flight_visit_history, which deliver a subset of the same data.

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

Usage Guidelines2/5

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

The only usage cue is the phrase 'used on the detail page'; there is no explicit guidance on when to call this versus Flight_get_aircraft_from_list, Flight_list_flights, or the individual aggregate siblings whose data it bundles. An agent must infer the choice from the return-field list alone.

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.