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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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)
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It provides partial value by documenting the return type ('Dictionary containing list of import errors'), but fails to disclose safety properties (read-only nature), side effects, rate limits, or error handling behavior when the environment_name is invalid.

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

Conciseness3/5

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

The docstring format with Args/Returns sections is structured and readable, but somewhat verbose for an MCP description. The first sentence efficiently captures the purpose, but the subsequent sections, while informative, duplicate information that ideally would live in the schema (if coverage weren't 0%).

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

Completeness3/5

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

For a 3-parameter retrieval tool with an output schema, the description provides minimally viable coverage. It documents the parameters and return structure, but given the complete absence of annotations and the importance of import errors in troubleshooting, it should disclose whether this retrieves real-time data or cached errors, and any limitations on historical error availability.

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

Parameters4/5

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

Given 0% schema description coverage, the Args section successfully compensates by adding semantic meaning to all three parameters: defining environment_name as the 'MWAA environment', limit as 'Number of items to return', and offset as 'Number of items to skip'. However, it omits that limit and offset are optional with default values (100 and 0 respectively), which is critical pagination context.

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 clearly states the specific action (Get) and resource (DAG import errors), defining the scope to a specific environment. However, it lacks differentiation from sibling tools like `get_dag` or `get_environment`, which also retrieve information about DAGs/Environments, leaving ambiguity about when to choose this specific diagnostic tool.

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 is provided on when to use this tool versus alternatives. There is no mention of prerequisites (e.g., that the environment must exist) or when a user should check import errors versus triggering a DAG run or inspecting task logs. The Args section documents parameters but does not advise on tool selection.

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

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