Skip to main content
Glama

list_variables

Retrieve all Airflow variables from an MWAA environment to manage configuration data and workflow parameters.

Instructions

List all Airflow variables 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 variables

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environment_nameYes
limitNo
offsetNo

Implementation Reference

  • The actual implementation of the list_variables tool logic that interacts with the Airflow API.
    async def list_variables(
        self,
        environment_name: str,
        limit: Optional[int] = 100,
        offset: Optional[int] = 0,
    ) -> Dict[str, Any]:
        """List variables via Airflow API."""
        params: Dict[str, Any] = {"limit": limit, "offset": offset}
        return self._invoke_airflow_api(
            environment_name, "GET", "/variables", params=params
        )
  • The MCP tool registration and entry point wrapper for list_variables.
    @mcp.tool(name="list_variables")
    async def list_variables(
        environment_name: str,
        limit: Optional[int] = 100,
        offset: Optional[int] = 0,
    ) -> Dict[str, Any]:
        """List all Airflow variables 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 variables
        """
        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.list_variables(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