get_value
Retrieve specific configuration options from Apache Airflow deployments using Bearer token authentication for secure API access.
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 async handler function that implements the core logic of the 'get_value' tool. It retrieves a specific configuration option using the Airflow config API and formats the response 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)The get_all_functions() defines and returns the tuple for registering the 'get_value' tool, including its name, description, and read-only flag. This list is later used by 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), ]