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
| Name | Required | Description | Default |
|---|---|---|---|
| section | Yes | ||
| option | Yes |
Implementation Reference
- src/airflow/config.py:31-35 (handler)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()))]
- src/airflow/config.py:11-16 (registration)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), ]