Skip to main content
Glama

get_import_errors

Retrieve DAG import errors from Amazon MWAA environments to identify and resolve workflow deployment issues.

Instructions

Get DAG import errors in the environment.

Args: environment_name: Name of the MWAA environment limit: Number of items to return offset: Number of items to skip

Returns: Dictionary containing list of import errors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environment_nameYes
limitNo
offsetNo

Implementation Reference

  • The implementation of the get_import_errors tool logic which calls the Airflow API.
    async def get_import_errors(
        self,
        environment_name: str,
        limit: Optional[int] = 100,
        offset: Optional[int] = 0,
    ) -> Dict[str, Any]:
        """Get import errors via Airflow API."""
        params: Dict[str, Any] = {"limit": limit, "offset": offset}
        return self._invoke_airflow_api(
            environment_name, "GET", "/dags/importErrors", params=params
        )
  • Registration and handler wrapper for the get_import_errors tool in the MCP server.
    @mcp.tool(name="get_import_errors")
    async def get_import_errors(
        environment_name: str,
        limit: Optional[int] = 100,
        offset: Optional[int] = 0,
    ) -> Dict[str, Any]:
        """Get DAG import errors in the environment.
    
        Args:
            environment_name: Name of the MWAA environment
            limit: Number of items to return
            offset: Number of items to skip
    
        Returns:
            Dictionary containing list of import errors
        """
        limit_int = int(limit) if limit is not None else 100
        offset_int = int(offset) if offset is not None else 0
    
        return await tools.get_import_errors(environment_name, limit_int, offset_int)

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/paschmaria/mwaa-mcp-server'

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