Skip to main content
Glama

list_connections

Retrieve all Airflow connections from an Amazon MWAA environment to manage database, API, and service integrations for workflow orchestration.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environment_nameYes
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation of the 'list_connections' tool within the MWAATools class.
    async def list_connections(
        self,
        environment_name: str,
        limit: Optional[int] = 100,
        offset: Optional[int] = 0,
    ) -> Dict[str, Any]:
        """List connections via Airflow API."""
        params: Dict[str, Any] = {"limit": limit, "offset": offset}
        return self._invoke_airflow_api(
            environment_name, "GET", "/connections", params=params
        )
Behavior2/5

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

No annotations provided, so description carries full burden. It only states return type (Dictionary with list) but lacks critical behavioral context: no mention of read-only safety, pagination behavior implications, rate limits, or whether connections contain sensitive credentials that require special handling.

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?

Docstring structure (Args/Returns) is logical and front-loads the purpose sentence. Some redundancy exists between Args section and required schema fields, but given zero schema coverage, this repetition is necessary rather than wasteful.

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?

Acknowledges output exists ('Returns: Dictionary...') which aligns with having output schema, but fails to explain what constitutes an 'Airflow connection' (credentials, hooks, URIs) which would help an agent evaluate relevance. Adequate but incomplete for a 3-parameter resource listing tool.

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?

With 0% schema description coverage, the description compensates by documenting all 3 parameters in the Args section (environment_name scope, limit/offset pagination semantics). However, it omits format constraints, valid ranges, or examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States specific action 'List' and resource 'Airflow connections', clearly distinguishing from sibling tools like list_dags, list_variables, and list_environments. The scope 'in the environment' ties it to the MWAA context.

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 guidance on when to use this tool versus siblings (e.g., when to list connections vs. get_environment or list_variables). No mention of prerequisites, permissions, or workflow context.

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