Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

get_value

Retrieve specific configuration values from Apache Airflow settings to access system parameters and customize workflow behavior.

Instructions

Get a specific option from configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionYes
optionYes

Implementation Reference

  • The main handler function for the 'get_value' tool. It takes section and option parameters, calls the Airflow config_api to retrieve the value, and returns it as MCP TextContent.
    async def get_value( section: str, option: str ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: response = config_api.get_value(section=section, option=option) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Function that returns the list of tools for the config module, including the registration tuple for 'get_value', which is later used in src/main.py to add the tool to the MCP server.
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_config, "get_config", "Get current configuration", True), (get_value, "get_value", "Get a specific option from configuration", 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