Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

delete_connection

Remove a specific connection by its ID from Apache Airflow using the MCP Server, ensuring clean and efficient management of Airflow connections.

Instructions

Delete a connection by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conn_idYes

Implementation Reference

  • The async handler function that implements the delete_connection tool. It calls the Airflow ConnectionApi's delete_connection method with the provided connection ID and returns a text representation of the response.
    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 registration function get_all_functions() that includes the delete_connection tool in its list of MCP tools to be registered, specifying its name, description, and that it is not read-only.
    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/yangkyeongmo/mcp-server-apache-airflow'

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