Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

delete_variable

Remove a specific variable in Apache Airflow by its key using the MCP Server, enabling efficient management of Airflow configurations.

Instructions

Delete a variable by key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes

Implementation Reference

  • The main handler function for the 'delete_variable' tool. It takes a 'key' parameter, calls the Airflow VariableApi to delete the variable, and returns the response as formatted text content.
    async def delete_variable(key: str) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: response = variable_api.delete_variable(variable_key=key) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Registers the 'delete_variable' tool by including it in the list of functions returned by get_all_functions(), which is imported and used in src/main.py to add the 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_variables, "list_variables", "List all variables", True), (create_variable, "create_variable", "Create a variable", False), (get_variable, "get_variable", "Get a variable by key", True), (update_variable, "update_variable", "Update a variable by key", False), (delete_variable, "delete_variable", "Delete a variable by key", False), ]

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