Skip to main content
Glama

MCP Server Airflow Token

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

NameRequiredDescriptionDefault
optionYes
sectionYes

Input Schema (JSON Schema)

{ "properties": { "option": { "title": "Option", "type": "string" }, "section": { "title": "Section", "type": "string" } }, "required": [ "section", "option" ], "type": "object" }

Implementation Reference

  • 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()))]
  • 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), ]

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/nikhil-ganage/mcp-server-airflow-token'

If you have feedback or need assistance with the MCP directory API, please join our Discord server