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
| Name | Required | Description | Default |
|---|---|---|---|
| region_id | Yes | ||
| db_instance_id | Yes |
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
- src/alibabacloud_rds_openapi_mcp_server/server.py:91-91 (registration)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": [],