Skip to main content
Glama

get_dag

Retrieve detailed information about a specific Apache Airflow DAG in Amazon MWAA environments, including schedule, tags, and current state.

Instructions

Get details about a specific DAG.

Args: environment_name: Name of the MWAA environment dag_id: The DAG ID

Returns: Dictionary containing DAG details including schedule, tags, and state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environment_nameYes
dag_idYes

Implementation Reference

  • The actual implementation of the get_dag tool, which calls the Airflow API.
    async def get_dag(self, environment_name: str, dag_id: str) -> Dict[str, Any]:
        """Get DAG details via Airflow API."""
        return self._invoke_airflow_api(environment_name, "GET", f"/dags/{dag_id}")
  • The registration of the get_dag tool in the MCP server and its wrapper function.
    @mcp.tool(name="get_dag")
    async def get_dag(
        environment_name: str,
        dag_id: str,
    ) -> Dict[str, Any]:
        """Get details about a specific DAG.
    
        Args:
            environment_name: Name of the MWAA environment
            dag_id: The DAG ID
    
        Returns:
            Dictionary containing DAG details including schedule, tags, and state
        """
        return await tools.get_dag(environment_name, dag_id)

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