Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

get_import_errors

Retrieve and list import errors from Apache Airflow to identify and resolve DAG loading issues.

Instructions

List import errors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
order_byNo

Implementation Reference

  • The async handler function that implements the get_import_errors tool. It accepts optional parameters limit, offset, order_by, calls the Airflow ImportErrorApi, and formats the response as MCP TextContent.
    async def get_import_errors(
        limit: Optional[int] = None,
        offset: Optional[int] = None,
        order_by: Optional[str] = None,
    ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]:
        # Build parameters dictionary
        kwargs: Dict[str, Any] = {}
        if limit is not None:
            kwargs["limit"] = limit
        if offset is not None:
            kwargs["offset"] = offset
        if order_by is not None:
            kwargs["order_by"] = order_by
    
        response = import_error_api.get_import_errors(**kwargs)
        return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Function providing the registration tuple for the get_import_errors MCP tool (function, name, description, read-only flag).
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]:
        """Return list of (function, name, description, is_read_only) tuples for registration."""
        return [
            (get_import_errors, "get_import_errors", "List import errors", True),
            (get_import_error, "get_import_error", "Get a specific import error by ID", True),
        ]
Behavior1/5

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

No annotations are provided, so the description carries full burden but discloses nothing beyond the basic action. It doesn't mention whether this is a read-only operation, what permissions are needed, if there are rate limits, or the format of returned data. For a tool with no annotation coverage, this is inadequate.

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 just three words, front-loaded and zero waste. However, this conciseness comes at the cost of completeness, but as a standalone measure, it's efficient.

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 the tool's complexity (3 parameters, no annotations, no output schema), the description is completely inadequate. It doesn't explain what 'import errors' are in this context, how results are structured, or any behavioral aspects. For a list operation with pagination parameters, more detail is essential.

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

Parameters1/5

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

Schema description coverage is 0%, meaning all three parameters (limit, offset, order_by) are undocumented in the schema. The description adds no information about these parameters, failing to compensate for the coverage gap. It doesn't explain what 'order_by' options exist or how pagination works.

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

Purpose3/5

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

The description 'List import errors' clearly states the action (list) and resource (import errors), but it's vague about scope and format. It doesn't specify whether it lists all import errors or filtered ones, nor does it distinguish from sibling tools like 'get_import_error' (singular).

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?

No guidance on when to use this tool versus alternatives is provided. With sibling tools like 'get_import_error' (singular) and 'get_event_logs' (which might include errors), the description offers no context for selection. It lacks prerequisites or exclusions.

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