Skip to main content
Glama

create_web_login_token

Generate a secure web token to access the Apache Airflow UI for Amazon MWAA environments, providing authentication for workflow management.

Instructions

Create a web login token for accessing the Airflow UI.

Args: name: The name of the MWAA environment

Returns: Dictionary containing the web token, webserver hostname, and IAM identity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the 'create_web_login_token' tool logic, which calls the AWS Boto3 MWAA client.
    async def create_web_login_token(self, name: str) -> Dict[str, Any]:
        """Create a web login token for the environment."""
        try:
            response = self.mwaa_client.create_web_login_token(Name=name)
            return {
                "WebToken": response["WebToken"],
                "WebServerHostname": response["WebServerHostname"],
                "IamIdentity": response["IamIdentity"],
            }
  • The MCP tool registration handler that calls the underlying tools library.
    @mcp.tool(name="create_web_login_token")
    async def create_web_login_token(
        name: str,
    ) -> Dict[str, Any]:
        """Create a web login token for accessing the Airflow UI.
    
        Args:
            name: The name of the MWAA environment
    
        Returns:
            Dictionary containing the web token, webserver hostname, and IAM identity
        """
        return await tools.create_web_login_token(name)
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden. It usefully documents the return values (web token, hostname, IAM identity) but omits critical behavioral context such as token expiration time, whether previous tokens are invalidated, or required IAM permissions to invoke this operation.

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 a standard Args/Returns docstring format that is structured and efficient. The information density is high with no redundant sentences, though the formal structure is slightly verbose compared to prose descriptions.

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

Completeness4/5

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

For a single-parameter mutation tool with a documented return structure (satisfying the output schema presence), the description is adequately complete. It identifies the domain (MWAA via the Args description) and explains the return dictionary contents sufficiently for invocation decisions.

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?

The input schema has 0% description coverage (just type: string), so the description compensates by specifying that the 'name' parameter refers to 'The name of the MWAA environment'. This adds essential semantic context that the schema lacks.

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 states the specific action (Create) and resource (web login token) along with the target system (Airflow UI). However, it does not explicitly distinguish this from the sibling tool `create_cli_token`, leaving ambiguity about which token type to use for different access patterns.

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?

There is no guidance on when to use this tool versus the sibling `create_cli_token`, nor are there prerequisites mentioned (e.g., requiring an existing environment). The description only states what the tool does, not when to choose it over alternatives.

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