Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

get_config

Retrieve Apache Airflow configuration settings to manage workflows and system parameters through the MCP server interface.

Instructions

Get current configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNo

Implementation Reference

  • The main handler function for the 'get_config' tool. It optionally takes a 'section' parameter, fetches the Airflow configuration via ConfigApi, and formats the response as MCP TextContent.
    async def get_config(
        section: Optional[str] = None,
    ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]:
        # Build parameters dictionary
        kwargs: Dict[str, Any] = {}
        if section is not None:
            kwargs["section"] = section
    
        response = config_api.get_config(**kwargs)
        return [types.TextContent(type="text", text=str(response.to_dict()))]
  • The get_all_functions utility that provides the registration tuple for the 'get_config' tool, including its name, description, and read-only status.
    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),
        ]
  • src/main.py:25-25 (registration)
    Maps APIType.CONFIG to the get_config_functions (alias for get_all_functions from config.py), enabling registration of config tools including 'get_config'.
    APIType.CONFIG: get_config_functions,
  • src/main.py:95-96 (registration)
    The code block that iterates over the functions from get_all_functions (for CONFIG) and registers each as an MCP Tool using app.add_tool.
    for func, name, description, *_ in functions:
        app.add_tool(Tool.from_function(func, name=name, description=description))
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavioral traits. It only states the action 'Get current configuration' without any details on permissions, rate limits, side effects, or return format. This is inadequate for a tool with potential read operations and no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with a single sentence 'Get current configuration', which is front-loaded and wastes no words. However, this brevity contributes to underspecification rather than clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and low parameter coverage, the description is incomplete. It does not explain what 'configuration' entails, how results are returned, or behavioral aspects, making it insufficient for effective tool use in a context with many sibling tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has one parameter 'section' with 0% description coverage and no enums. The description does not mention parameters at all, failing to compensate for the lack of schema documentation. It should explain what 'section' refers to (e.g., a configuration category) to add semantic value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get current configuration' restates the tool name 'get_config' with minimal elaboration, making it tautological. It specifies the verb 'Get' and resource 'current configuration' but lacks detail on what configuration refers to (e.g., system, application, or Airflow-specific settings), failing to distinguish it clearly from sibling tools like get_variable or get_connection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention context, prerequisites, or comparisons to sibling tools (e.g., get_variable for specific values or get_connection for connection details), leaving the agent without usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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