Skip to main content
Glama
aliyun

Alibaba Cloud RDS OpenAPI MCP Server

Official
by aliyun

modify_security_ips

Update IP whitelist settings for Alibaba Cloud RDS instances to control database access permissions and network security configurations.

Instructions

modify security ips。

Args:
    region_id (str): RDS instance region id.
    dbinstance_id (str): RDS instance id.
    security_ips (str): security ips list, separated by commas.
    whitelist_network_type (str, optional): whitelist network type.
        - MIX: mixed network type
        - Classic: classic network
        - VPC: vpc
        default value: MIX
    security_ip_type (str, optional): security ip type.
        - normal: normal security ip
        - hidden: hidden security ip
    dbinstance_ip_array_name (str, optional): security ip array name.
    dbinstance_ip_array_attribute (str, optional): security ip array attribute.
        - hidden: hidden security ip
        - normal: normal security ip
    client_token (str, optional): idempotency token, max 64 ascii characters.

Returns:
    Dict[str, Any]: response contains request id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_idYes
dbinstance_idYes
security_ipsYes
whitelist_network_typeNoMIX
security_ip_typeNo
dbinstance_ip_array_nameNo
dbinstance_ip_array_attributeNo
client_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The main handler function for the 'modify_security_ips' MCP tool. It constructs a ModifySecurityIpsRequest using the provided parameters and calls the Alibaba Cloud RDS API via get_rds_client to update the security IP whitelist for the specified DB instance.
    async def modify_security_ips(
            region_id: str,
            dbinstance_id: str,
            security_ips: str,
            whitelist_network_type: str = "MIX",
            security_ip_type: str = None,
            dbinstance_ip_array_name: str = None,
            dbinstance_ip_array_attribute: str = None,
            client_token: str = None
    ) -> Dict[str, Any]:
        """modify security ips。
    
        Args:
            region_id (str): RDS instance region id.
            dbinstance_id (str): RDS instance id.
            security_ips (str): security ips list, separated by commas.
            whitelist_network_type (str, optional): whitelist network type.
                - MIX: mixed network type
                - Classic: classic network
                - VPC: vpc
                default value: MIX
            security_ip_type (str, optional): security ip type.
                - normal: normal security ip
                - hidden: hidden security ip
            dbinstance_ip_array_name (str, optional): security ip array name.
            dbinstance_ip_array_attribute (str, optional): security ip array attribute.
                - hidden: hidden security ip
                - normal: normal security ip
            client_token (str, optional): idempotency token, max 64 ascii characters.
    
        Returns:
            Dict[str, Any]: response contains request id.
        """
        try:
            # initialize client
            client = get_rds_client(region_id)
    
            # create request
            request = rds_20140815_models.ModifySecurityIpsRequest(
                dbinstance_id=dbinstance_id,
                security_ips=security_ips,
                whitelist_network_type=whitelist_network_type
            )
    
            # add optional parameters
            if security_ip_type:
                request.security_ip_type = security_ip_type
            if dbinstance_ip_array_name:
                request.dbinstance_ip_array_name = dbinstance_ip_array_name
            if dbinstance_ip_array_attribute:
                request.dbinstance_ip_array_attribute = dbinstance_ip_array_attribute
            if client_token:
                request.client_token = client_token
    
            # send api request
            response = client.modify_security_ips(request)
            return response.body.to_map()
    
        except Exception as e:
            logger.error(f"modify security ips error: {str(e)}")
            raise OpenAPIError(f"modify rds instance security ips failed: {str(e)}")
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a modification tool (implies mutation), but doesn't describe what permissions are required, whether changes are reversible, what happens to existing security IPs not mentioned, rate limits, or error conditions. The return value is mentioned but without context about success/failure indicators.

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 appropriately sized but not optimally structured. It begins with a vague purpose statement followed by comprehensive parameter documentation. While the parameter documentation is valuable, the initial purpose statement could be more informative. The structure is functional but could be more front-loaded with clearer purpose.

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?

For a mutation tool with 8 parameters and no annotations, the description provides good parameter documentation and mentions the return value. However, it lacks important context about behavioral aspects (permissions, side effects, error handling) and doesn't explain how this tool relates to sibling tools. The output schema exists, so return value details aren't needed in the description.

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 description provides detailed parameter documentation including data types, optional status, default values, and enum explanations for 8 parameters. With 0% schema description coverage, this description fully compensates by explaining what each parameter means, their allowed values, and formatting requirements (e.g., 'security ips list, separated by commas'). Only minor improvement would be explaining relationships between parameters.

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

Purpose3/5

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

The description states the tool 'modify security ips' which indicates a write operation on security IP configurations for RDS instances. However, it's vague about what specific modification occurs (add, remove, replace?) and doesn't distinguish itself from sibling tools like 'describe_db_instance_ip_allowlist' or 'attach_whitelist_template_to_instance'. The purpose is understandable but lacks specificity.

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?

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention prerequisites, when this operation is appropriate, or how it differs from related tools like 'describe_db_instance_ip_allowlist' or 'attach_whitelist_template_to_instance'. The agent receives no contextual usage information.

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