Skip to main content
Glama

create_connection

Add a new connection to Apache Airflow clusters for data pipeline integration, enabling task monitoring and DAG inspection through the MCP server.

Instructions

[Tool Role]: Creates a new connection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connection_dataYes

Implementation Reference

  • The core implementation of the 'create_connection' MCP tool handler. It performs a POST request to Airflow's /connections endpoint using the provided connection_data dictionary.
    async def create_connection(connection_data: Dict[str, Any]) -> Dict[str, Any]: """[Tool Role]: Creates a new connection.""" resp = await airflow_request("POST", "/connections", json=connection_data) resp.raise_for_status() return resp.json()
  • Registration invocation for Airflow v1 tools, which includes the create_connection tool via common_tools.register_common_tools(mcp).
    common_tools.register_common_tools(mcp)
  • Registration invocation for Airflow v2 tools, which includes the create_connection tool via common_tools.register_common_tools(mcp).
    common_tools.register_common_tools(mcp)

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/call518/MCP-Airflow-API'

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