get_value
Retrieve specific configuration values from Apache Airflow deployments by specifying section and option parameters to access deployment settings.
Instructions
Get a specific option from configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| option | Yes | ||
| section | Yes |
Input Schema (JSON Schema)
{
"properties": {
"option": {
"title": "Option",
"type": "string"
},
"section": {
"title": "Section",
"type": "string"
}
},
"required": [
"section",
"option"
],
"type": "object"
}
Implementation Reference
- src/airflow/config.py:31-35 (handler)The async handler function that implements the 'get_value' tool logic. It retrieves a specific configuration option using the config_api and returns it as text content.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 helper that provides the registration tuple for the 'get_value' tool, which is later used in main.py to add the tool.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), ]