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

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