describe_rds_instances
Retrieve a list of RDS instances on Alibaba Cloud by specifying the region ID, enabling efficient management and monitoring of database resources.
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-228 (handler)Handler function for the 'describe_rds_instances' MCP tool. Decorated with @app.tool() for automatic registration. Delegates to a matching tool in common_api_tools.tools or returns a status 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)}"
- complete_fastmcp_server.py:210-210 (registration)Registration of the tool via FastMCP @app.tool() decorator.@app.tool()