Skip to main content
Glama

get_environment

Retrieve configuration, status, endpoints, and metadata for a specific Amazon MWAA environment by providing its name.

Instructions

Get detailed information about a specific MWAA environment.

Args: name: The name of the MWAA environment

Returns: Dictionary containing environment details including configuration, status, endpoints, and other metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and handler definition for the 'get_environment' tool in the MCP server. It delegates the call to the MWAATools class.
    @mcp.tool(name="get_environment")
    async def get_environment(
        name: str,
    ) -> Dict[str, Any]:
        """Get detailed information about a specific MWAA environment.
    
        Args:
            name: The name of the MWAA environment
    
        Returns:
            Dictionary containing environment details including configuration,
            status, endpoints, and other metadata
        """
        return await tools.get_environment(name)
  • The actual logic implementation for 'get_environment', using the boto3 mwaa_client to fetch environment details.
    async def get_environment(self, name: str) -> Dict[str, Any]:
        """Get environment details."""
        try:
            response = self.mwaa_client.get_environment(Name=name)
    
            env = response.get("Environment", {})
            if "CreatedAt" in env:
                env["CreatedAt"] = env["CreatedAt"].isoformat()
            if "LastUpdate" in env and "CreatedAt" in env["LastUpdate"]:
                env["LastUpdate"]["CreatedAt"] = env["LastUpdate"]["CreatedAt"].isoformat()
    
            return {"Environment": env}
    
        except (ClientError, BotoCoreError) as e:
            logger.error("Error getting environment %s: %s", name, e)
            return {"error": str(e)}
Behavior3/5

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

No annotations are provided, so description carries full burden. It discloses return value structure (dictionary with configuration, status, endpoints) which is helpful, but omits error behavior, permissions required, or what happens if the environment is not found.

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

Conciseness4/5

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

Uses structured docstring format with clear Args and Returns sections. Information is front-loaded and efficient. No redundant sentences, though Returns section partially duplicates unseen output schema it provides useful field hints.

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?

Adequate for a simple single-parameter read operation with existing output schema, but gaps remain: zero schema coverage necessitates more detailed parameter documentation (e.g., validation patterns), and error conditions are not described.

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?

Schema description coverage is 0%, requiring description compensation. The Args section documents the 'name' parameter as 'The name of the MWAA environment', providing basic semantics. Does not elaborate on format constraints (ARN vs simple name) but covers the essential meaning of the single parameter.

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?

States specific verb 'Get' with resource 'MWAA environment' and scope 'detailed information'. Use of 'specific' implies single-resource retrieval, distinguishing from sibling 'list_environments', though it does not explicitly name the alternative.

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?

Provides no explicit guidance on when to use this tool versus 'list_environments' or prerequisites (e.g., that the environment must exist). The word 'specific' only implies usage context rather than stating it clearly.

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