Skip to main content
Glama

Get live traffic nearby

get_traffic_flights
Read-onlyIdempotent

Return live flights near a point or airport, inside a bounding box, or matching an operator and flight number. Nearby and box results default to airborne flights. Pass include_ground true to include completed, dropped, and on-ground statuses. Use one form per request. Use get_traffic_flight for one ident or GUFI. Use get_traffic_arrivals or get_traffic_departures for an airport board.

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": "get_traffic_flights"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude in decimal degrees. Example: 37.6189
lonNoLongitude in decimal degrees. Example: -122.375
airportNoAirport ICAO or FAA location id. Example: KSFO
max_latNoNorth latitude of a bounding box. Example: 38.0
max_lonNoEast longitude of a bounding box. Example: -121.0
min_latNoSouth latitude of a bounding box. Example: 37.0
min_lonNoWest longitude of a bounding box. Example: -123.0
radius_nmNoSearch radius in nautical miles. Example: 20
flight_numberNoFlight number. Example: 100
operator_icaoNoAirline ICAO code. Example: AAL
include_groundNoWhen true, include completed, dropped, and on-ground flights. Default is airborne flights only. Example: true

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / include_ground
      Added value: +{
      +  "description": "When true, include completed, dropped, and on-ground flights. Default is airborne flights only. Example: true",
      +  "examples": [
      +    true
      +  ],
      +  "type": "boolean"
      +}
  2. Changed16 schema fields changed
    • changedInput schema / properties / airport / description
      Previous value: -"Airport ICAO or FAA location id"New value: +"Airport ICAO or FAA location id. Example: KSFO"
    • addedInput schema / properties / airport / examples
      Added value: +[
      +  "KSFO"
      +]
    • changedInput schema / properties / flight_number / description
      Previous value: -"Flight number"New value: +"Flight number. Example: 100"
    • addedInput schema / properties / flight_number / examples
      Added value: +[
      +  "100"
      +]
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude in decimal degrees"New value: +"Latitude in decimal degrees. Example: 37.6189"
    • addedInput schema / properties / lat / examples
      Added value: +[
      +  37.6189
      +]
    • changedInput schema / properties / lon / description
      Previous value: -"Longitude in decimal degrees"New value: +"Longitude in decimal degrees. Example: -122.375"
    • addedInput schema / properties / lon / examples
      Added value: +[
      +  -122.375
      +]
    • addedInput schema / properties / max_lat
      Added value: +{
      +  "description": "North latitude of a bounding box. Example: 38.0",
      +  "examples": [
      +    38
      +  ],
      +  "type": "number"
      +}
    • addedInput schema / properties / max_lon
      Added value: +{
      +  "description": "East longitude of a bounding box. Example: -121.0",
      +  "examples": [
      +    -121
      +  ],
      +  "type": "number"
      +}
    • addedInput schema / properties / min_lat
      Added value: +{
      +  "description": "South latitude of a bounding box. Example: 37.0",
      +  "examples": [
      +    37
      +  ],
      +  "type": "number"
      +}
    • addedInput schema / properties / min_lon
      Added value: +{
      +  "description": "West longitude of a bounding box. Example: -123.0",
      +  "examples": [
      +    -123
      +  ],
      +  "type": "number"
      +}
    • changedInput schema / properties / operator_icao / description
      Previous value: -"Airline ICAO code"New value: +"Airline ICAO code. Example: AAL"
    • addedInput schema / properties / operator_icao / examples
      Added value: +[
      +  "AAL"
      +]
    • changedInput schema / properties / radius_nm / description
      Previous value: -"Search radius in nautical miles"New value: +"Search radius in nautical miles. Example: 20"
    • addedInput schema / properties / radius_nm / examples
      Added value: +[
      +  20
      +]
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower. The description still adds real behavioral context by disclosing that nearby/box results default to airborne only and that include_ground expands to completed, dropped, and on-ground statuses. It omits result limits/pagination, which is the only remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, each doing distinct work: capability, default behavior, modifier, usage constraint, and sibling routing. The core capability is front-loaded and nothing is redundant.

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 an 11-parameter read-only query tool with a full-coverage schema and no output schema, the description covers the modes, the default filtering, and the sibling boundaries. The only unaddressed edge is behavior when no form parameters are supplied, which is minor given zero required parameters.

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 per-parameter meaning is already documented, giving a baseline of 3. The description goes beyond that by grouping the 11 parameters into mutually exclusive request forms and by restating the include_ground default semantics, which the schema alone does not convey as a constraint.

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 and resource (return live flights) and enumerates the three query modes: near a point/airport, bounding box, or operator+flight number. This clearly separates it from get_traffic_flight (single ident) and the arrivals/departures board tools.

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

Usage Guidelines5/5

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

Explicitly routes the agent to alternatives by name: get_traffic_flight for one ident or GUFI, and get_traffic_arrivals/get_traffic_departures for an airport board. It also instructs 'Use one form per request,' which prevents a common misuse of the multi-mode parameter set.

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.

Resources