get_propeller_database
Access propeller geometric and performance data for aircraft flight planning and performance estimation within the Aerospace MCP server.
Instructions
Get available propeller database with geometric and performance data.
Returns: JSON string with propeller database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main MCP tool handler function. Imports PROPELLER_DATABASE from integrations/propellers.py and returns it as a JSON-formatted string. Includes error handling for missing dependencies.def get_propeller_database() -> str: """Get available propeller database with geometric and performance data. Returns: JSON string with propeller database """ try: from ..integrations.propellers import PROPELLER_DATABASE return json.dumps(PROPELLER_DATABASE, indent=2) except ImportError: return "Propeller database not available" except Exception as e: logger.error(f"Propeller database error: {str(e)}", exc_info=True) return f"Propeller database error: {str(e)}"
- aerospace_mcp/fastmcp_server.py:108-108 (registration)Registers the get_propeller_database tool function with the FastMCP server instance.mcp.tool(get_propeller_database)
- Static PROPELLER_DATABASE dictionary containing specifications for common propellers (APC and Multistar models), directly used by the tool handler.PROPELLER_DATABASE = { "APC_10x7": { "diameter_m": 0.254, # 10 inches "pitch_m": 0.178, # 7 inches "num_blades": 2, "activity_factor": 100, "cl_design": 0.5, "cd_design": 0.02, "efficiency_max": 0.82, }, "APC_12x8": { "diameter_m": 0.305, # 12 inches "pitch_m": 0.203, # 8 inches "num_blades": 2, "activity_factor": 110, "cl_design": 0.5, "cd_design": 0.02, "efficiency_max": 0.84, }, "APC_15x10": { "diameter_m": 0.381, # 15 inches "pitch_m": 0.254, # 10 inches "num_blades": 2, "activity_factor": 120, "cl_design": 0.5, "cd_design": 0.02, "efficiency_max": 0.85, }, "MULTISTAR_8045": { "diameter_m": 0.203, # 8 inches "pitch_m": 0.114, # 4.5 inches "num_blades": 3, "activity_factor": 90, "cl_design": 0.6, "cd_design": 0.025, "efficiency_max": 0.75, }, }
- aerospace_mcp/fastmcp_server.py:64-68 (registration)Imports the get_propeller_database tool from the tools.propellers module for registration.from .tools.propellers import ( get_propeller_database, propeller_bemt_analysis, uav_energy_estimate, )