describe_ecs_regions
Retrieve a list of available ECS regions on Alibaba Cloud to manage and deploy resources across specific geographic locations.
Instructions
查询ECS可用区域列表
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- complete_fastmcp_server.py:49-63 (handler)The main handler and registration for the 'describe_ecs_regions' MCP tool. It is decorated with @app.tool() and implements logic to delegate to a region-finding tool in common_api_tools or return availability message.@app.tool() def describe_ecs_regions() -> str: """查询ECS可用区域列表""" 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 'region' in tool_func.__name__.lower(): result = tool_func() return str(result) return "ECS区域查询功能可用" except Exception as e: return f"ECS区域查询失败: {str(e)}"
- complete_fastmcp_server.py:49-49 (registration)Registration of the tool via FastMCP @app.tool() decorator.@app.tool()
- Supporting CommonAPICaller tool used potentially for calling ECS.DescribeRegions, though not directly invoked by the handler.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)