Skip to main content
Glama

MCP Server Airflow Token

delete_connection

Remove a specific connection from Apache Airflow by providing its connection ID, allowing management of data pipeline connections through the Airflow REST API.

Instructions

Delete a connection by ID

Input Schema

NameRequiredDescriptionDefault
conn_idYes

Input Schema (JSON Schema)

{ "properties": { "conn_id": { "title": "Conn Id", "type": "string" } }, "required": [ "conn_id" ], "type": "object" }

Implementation Reference

  • The asynchronous handler function that implements the 'delete_connection' tool logic. It takes a connection ID, calls the Airflow ConnectionApi to delete it, and returns the response as text content.
    async def delete_connection(conn_id: str) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: response = connection_api.delete_connection(connection_id=conn_id) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • The get_all_functions() registers the 'delete_connection' tool along with others by returning a tuple (function, name, description, is_read_only=False). This list is likely used elsewhere to register the MCP tools.
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (list_connections, "list_connections", "List all connections", True), (create_connection, "create_connection", "Create a connection", False), (get_connection, "get_connection", "Get a connection by ID", True), (update_connection, "update_connection", "Update a connection by ID", False), (delete_connection, "delete_connection", "Delete a connection by ID", False), (test_connection, "test_connection", "Test a connection", True), ]

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