Skip to main content
Glama

get_aircraft_performance

Calculate flight performance estimates for specific aircraft types by providing ICAO code, distance, and altitude to support aviation planning and operations.

Instructions

Get performance estimates for an aircraft type (requires OpenAP).

Args: aircraft_type: ICAO aircraft type code (e.g., 'A320', 'B737') distance_km: Flight distance in kilometers cruise_altitude_ft: Cruise altitude in feet

Returns: JSON string with performance estimates or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aircraft_typeYes
distance_kmYes
cruise_altitude_ftNo

Implementation Reference

  • The main handler function implementing the tool logic using OpenAP for aircraft performance estimation.
    def get_aircraft_performance( aircraft_type: str, distance_km: float, cruise_altitude_ft: float = 35000 ) -> str: """Get performance estimates for an aircraft type (requires OpenAP). Args: aircraft_type: ICAO aircraft type code (e.g., 'A320', 'B737') distance_km: Flight distance in kilometers cruise_altitude_ft: Cruise altitude in feet Returns: JSON string with performance estimates or error message """ if not OPENAP_AVAILABLE: return "OpenAP library is not available. Install with: pip install openap" try: performance = estimates_openap(aircraft_type, distance_km, cruise_altitude_ft) return json.dumps(performance, indent=2) except OpenAPError as e: return f"Performance estimation error: {str(e)}" except Exception as e: return f"Unexpected error: {str(e)}"
  • Registration of the get_aircraft_performance tool in the FastMCP server.
    mcp.tool(get_aircraft_performance)
  • Import of the get_aircraft_performance function necessary for registration.
    from .tools.core import ( calculate_distance, get_aircraft_performance, get_system_status, plan_flight, search_airports, )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cheesejaguar/aerospace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server