Skip to main content
Glama
aliyun

Alibaba Cloud RDS OpenAPI MCP Server

Official
by aliyun

describe_db_instance_attribute

Query detailed configuration and status information for a specific Alibaba Cloud RDS database instance to monitor its attributes and settings.

Instructions

Queries the details of an instance.
Args:
    region_id: db instance region(e.g. cn-hangzhou)
    db_instance_id: db instance id(e.g. rm-xxx)
:return:

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_idYes
db_instance_idYes

Implementation Reference

  • The main handler function for the 'describe_db_instance_attribute' tool. It calls the Alibaba Cloud RDS OpenAPI to retrieve detailed attributes of a specified DB instance.
    @mcp.tool(annotations=READ_ONLY_TOOL)
    async def describe_db_instance_attribute(region_id: str, db_instance_id: str):
        """
        Queries the details of an instance.
        Args:
            region_id: db instance region(e.g. cn-hangzhou)
            db_instance_id: db instance id(e.g. rm-xxx)
        :return:
        """
        client = get_rds_client(region_id)
        try:
            request = rds_20140815_models.DescribeDBInstanceAttributeRequest(dbinstance_id=db_instance_id)
            response = client.describe_dbinstance_attribute(request)
            return response.body.to_map()
        except Exception as e:
            raise e
  • The @mcp.tool decorator registers this function as the MCP tool named 'describe_db_instance_attribute'.
    @mcp.tool(annotations=READ_ONLY_TOOL)
  • Helper function to create and return the RDS OpenAPI client used in the handler.
    "sqlserver": {
        "MemCpuUsage": ["SQLServer_CPUUsage"],
        "QPSTPS": ["SQLServer_QPS", "SQLServer_IOPS"],
        "Sessions": ["SQLServer_Sessions"],
        "COMDML": [],

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