Skip to main content
Glama
nikhil-ganage

MCP Server Airflow Token

get_health

Check the operational status of an Apache Airflow deployment to verify system health and availability for workflow management.

Instructions

Get instance status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function that implements the 'get_health' tool logic. It calls the Airflow monitoring API to fetch health status and returns it formatted as MCP TextContent.
    async def get_health() -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Get the status of Airflow's metadatabase, triggerer and scheduler. It includes info about metadatabase and last heartbeat of scheduler and triggerer. """ response = monitoring_api.get_health() return [types.TextContent(type="text", text=str(response.to_dict()))]
  • The get_all_functions() function that registers the 'get_health' tool by providing its handler function, name, description, and read-only status, which is later used in main.py to add the tool via app.add_tool().
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_health, "get_health", "Get instance status", True), (get_version, "get_version", "Get version information", True), ]
  • Initialization of the monitoring_api client instance used by the get_health handler to query Airflow's health endpoint.
    monitoring_api = MonitoringApi(api_client)
  • src/main.py:90-92 (registration)
    The generic tool registration loop in main.py where functions from get_all_functions() (including get_health) are added to the MCP app using app.add_tool().
    for func, name, description, *_ in functions: app.add_tool(func, name=name, description=description)

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/nikhil-ganage/mcp-server-airflow-token'

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