describe_rds_instances
List RDS instances in a specified region to monitor and manage database resources on Alibaba Cloud.
Instructions
查询RDS实例列表
Args:
region: 区域ID,如cn-beijing
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | cn-beijing |
Implementation Reference
- complete_fastmcp_server.py:210-229 (handler)MCP tool handler function for 'describe_rds_instances'. It is decorated with @app.tool() for registration and implements logic by attempting to delegate to a matching function in common_api_tools.tools (though none matches), falling back to an availability message.@app.tool() def describe_rds_instances(region: str = "cn-beijing") -> str: """查询RDS实例列表 Args: region: 区域ID,如cn-beijing """ try: sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'alibaba_cloud_ops_mcp_server')) from tools import common_api_tools for tool_func in common_api_tools.tools: if hasattr(tool_func, '__name__') and 'rds' in tool_func.__name__.lower() and 'describe' in tool_func.__name__.lower(): result = tool_func(RegionId=region) return str(result) return f"RDS实例查询功能可用,查询region: {region}" except Exception as e: return f"RDS查询失败: {str(e)}"
- Configuration listing supported APIs for RDS service, including 'DescribeDBInstances', likely used by common API tools to understand available operations.'rds': [ 'DescribeDBInstances' ]
- Generic helper tool 'CommonAPICaller' in common_api_tools that can call RDS APIs like DescribeDBInstances, which the handler attempts to delegate to (though name matching fails).def CommonAPICaller( service: str = Field(description='AlibabaCloud service code'), api: str = Field(description='AlibabaCloud api name'), parameters: dict = Field(description='AlibabaCloud ECS instance ID List', default={}), ): """ Use PromptUnderstanding tool first to understand the user's query, Perform the actual call by specifying the Service, API, and Parameters """ return _tools_api_call(service, api, parameters, None)