Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

get_event_log

Retrieve specific Apache Airflow event log entries by ID to monitor system activities and troubleshoot workflow execution issues.

Instructions

Get a specific log entry by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_log_idYes

Implementation Reference

  • The main handler function for the 'get_event_log' tool. It takes an event_log_id, calls the Airflow EventLogApi to retrieve the log entry, and returns it as MCP TextContent.
    async def get_event_log(
        event_log_id: int,
    ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]:
        response = event_log_api.get_event_log(event_log_id=event_log_id)
        return [types.TextContent(type="text", text=str(response.to_dict()))]
  • The registration tuple for the 'get_event_log' tool within the module's get_all_functions(), which lists available tools for this module.
    return [
        (get_event_logs, "get_event_logs", "List log entries from event log", True),
        (get_event_log, "get_event_log", "Get a specific log entry by ID", True),
    ]
  • src/main.py:12-12 (registration)
    Import of the eventlog module's get_all_functions in the main.py, which collects tools from all modules.
    from src.airflow.eventlog import get_all_functions as get_eventlog_functions
  • src/main.py:95-96 (registration)
    The loop in main() that registers all collected tools (including get_event_log) with the MCP app using Tool.from_function.
    for func, name, description, *_ in functions:
        app.add_tool(Tool.from_function(func, name=name, description=description))
  • Initialization of the EventLogApi client used by the get_event_log handler.
    event_log_api = EventLogApi(api_client)
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states a read operation ('Get'), implying it's likely non-destructive, but doesn't disclose any behavioral traits such as authentication needs, error handling (e.g., what happens if ID doesn't exist), rate limits, or return format. This leaves significant gaps for a tool with no annotation coverage.

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 a single, efficient sentence with zero waste—it directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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

Completeness2/5

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

Given the tool's simplicity (1 parameter) but lack of annotations and output schema, the description is incomplete. It doesn't explain what a 'log entry' contains, how results are structured, or potential errors, leaving the agent with inadequate context for reliable use despite the straightforward operation.

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 1 parameter with 0% description coverage, so the schema provides no semantic context. The description mentions 'by ID', which adds some meaning for the 'event_log_id' parameter, but doesn't specify ID format, valid ranges, or examples. This partially compensates but is insufficient given the low schema coverage.

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

Purpose4/5

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

The description 'Get a specific log entry by ID' clearly states the verb ('Get') and resource ('log entry'), and specifies the lookup method ('by ID'), which is helpful. However, it doesn't distinguish this tool from sibling tools like 'get_event_logs' (plural) or 'get_log', leaving some ambiguity about scope.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'get_event_logs' (plural) and 'get_log' present, the agent lacks explicit direction on whether this is for single-entry retrieval versus bulk operations or different log types.

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