Skip to main content
Glama

fa_get_flight_map

Retrieve a rendered PNG map of a flight using its fa_flight_id, saving it to disk and returning the path or inline base64 when requested.

Instructions

Get a rendered map image (PNG) of a flight by fa_flight_id. Writes the PNG to disk (default: $AEROAPI_OUTPUT_DIR or cwd) and returns the path, or returns it inline as base64 when inline:true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesfa_flight_id of the flight
widthNoImage width in pixels
heightNoImage height in pixels
inlineNoReturn the PNG inline as base64 instead of writing to disk
output_dirNoDirectory to write the PNG to (default: $AEROAPI_OUTPUT_DIR or cwd). When AEROAPI_OUTPUT_DIR is set, this must be inside it.
show_data_blockNoOverlay the flight data block on the map

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.3
    • changedInput schema / properties / output_dir / description
      Previous value: -"Directory to write the PNG to (default: $AEROAPI_OUTPUT_DIR or cwd)"New value: +"Directory to write the PNG to (default: $AEROAPI_OUTPUT_DIR or cwd). When AEROAPI_OUTPUT_DIR is set, this must be inside it."
  2. Changed1 schema field changedv1.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false. The description adds real value beyond that: it discloses the filesystem side effect (writes PNG to disk), the default location ($AEROAPI_OUTPUT_DIR or cwd), the env-var containment constraint, and both return shapes (path or base64). It stops short of auth or rate-limit context.

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?

A single sentence with two tight clauses, front-loading what the tool returns before describing the write and inline alternatives. No filler, no redundancy.

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 no output schema, the description correctly carries the return-value burden by naming both the file path and inline base64 outcomes, and it discloses the side effect for a mutating call. It is largely complete, with only minor gaps around failure modes and the env-var constraint being restated rather than fully explained.

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 all six parameters including width, height, inline, and output_dir are already documented. The description reinforces the inline/output_dir semantics but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb (Get), resource (rendered map image, PNG), and the required identifier (fa_flight_id). It is clear what the tool produces, though it does not explicitly differentiate itself from the closest sibling fa_get_flight_track (data vs rendered image), leaving that distinction to inference.

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 description explains the two output modes but gives no guidance on when to choose this tool over siblings such as fa_get_flight_track or fa_get_flight_route. There are no stated prerequisites, exclusions, or alternative-selection conditions.

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