Skip to main content
Glama
aliyun

Alibaba Cloud RDS OpenAPI MCP Server

Official
by aliyun

create_db_instance_account

Create new user accounts for Alibaba Cloud RDS database instances to manage access permissions and authentication for database operations.

Instructions

Create a new account for an RDS instance.
Args:
    region_id: The region ID of the RDS instance.
    db_instance_id: The ID of the RDS instance.
    account_name: The name of the new account.
    account_password: The password for the new account.
    account_description: The description for the new account.
    account_type: The type of the new account. (e.g. Normal,Super)
Returns:
     dict[str, Any]: The response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_idYes
db_instance_idYes
account_nameYes
account_passwordYes
account_descriptionNo
account_typeNoNormal

Implementation Reference

  • The main handler function that implements the 'create_db_instance_account' MCP tool. It uses the Alibaba Cloud RDS OpenAPI client to create a database account on a specified DB instance.
    @mcp.tool()
    async def create_db_instance_account(
            region_id: str,
            db_instance_id: str,
            account_name: str,
            account_password: str,
            account_description: str = None,
            account_type: str = "Normal"
    ) -> dict:
        """
        Create a new account for an RDS instance.
        Args:
            region_id: The region ID of the RDS instance.
            db_instance_id: The ID of the RDS instance.
            account_name: The name of the new account.
            account_password: The password for the new account.
            account_description: The description for the new account.
            account_type: The type of the new account. (e.g. Normal,Super)
        Returns:
             dict[str, Any]: The response.
        """
        try:
            client = get_rds_client(region_id)
            request = rds_20140815_models.CreateAccountRequest(
                dbinstance_id=db_instance_id,
                account_name=account_name,
                account_password=account_password,
                account_description=account_description,
                account_type=account_type
            )
            response = await client.create_account_async(request)
            return response.body.to_map()
        except Exception as e:
            raise e
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states this is a creation operation, implying mutation, but doesn't disclose behavioral traits like required permissions, whether the account is immediately active, potential rate limits, or what happens if the account name already exists. The description mentions a return type but gives no details on response structure or success/error handling.

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

Conciseness3/5

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

The description is structured with Args and Returns sections, making it organized. However, it's slightly verbose—the first sentence could stand alone, and the parameter explanations are minimal but adequate. It's front-loaded with the purpose, but some redundancy exists (e.g., repeating 'account' in each param).

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?

Given no annotations, no output schema, and 6 parameters, the description is moderately complete. It covers the purpose and parameters but lacks behavioral context (e.g., mutation effects, error cases) and output details. For a creation tool with multiple inputs, it should provide more guidance on usage and outcomes to be fully helpful.

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%, so the description must compensate. It lists all 6 parameters with brief explanations, adding meaning beyond the schema's titles. For example, it clarifies account_type with examples (e.g., Normal, Super) and notes account_description and account_type have defaults. However, it doesn't explain region_id or db_instance_id formats, or password requirements.

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 clearly states the tool creates a new account for an RDS instance, specifying both the action (create) and resource (account for RDS instance). It distinguishes from siblings like create_db_instance (creates the instance itself) and describe_db_instance_accounts (lists accounts). However, it doesn't explicitly mention this distinction, so it's not a perfect 5.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., the RDS instance must exist), when not to use it, or refer to sibling tools like describe_db_instance_accounts for checking existing accounts. The agent must infer usage from context alone.

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/aliyun/alibabacloud-rds-openapi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server