get_version
Retrieve Apache Airflow version details to verify cluster compatibility and plan updates for workflow orchestration.
Instructions
[Tool Role]: Gets Airflow version information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'get_version' tool. It performs a GET request to the Airflow '/version' API endpoint using the shared 'airflow_request' function and returns the version information as a dictionary.@mcp.tool() async def get_version() -> Dict[str, Any]: """[Tool Role]: Gets Airflow version information.""" resp = await airflow_request("GET", "/version") resp.raise_for_status() return resp.json()
- src/mcp_airflow_api/tools/v1_tools.py:23-24 (registration)Calls register_common_tools which registers the get_version tool (among others) for Airflow API v1.common_tools.register_common_tools(mcp)
- src/mcp_airflow_api/tools/v2_tools.py:24-24 (registration)Calls register_common_tools which registers the get_version tool (among others) for Airflow API v2.common_tools.register_common_tools(mcp)