describe_ecs_zones
Retrieve available zones for Alibaba Cloud ECS instances to help deploy resources in optimal locations. Specify a region to get zone details for infrastructure planning.
Instructions
查询ECS可用区列表
Args:
region: 区域ID,如cn-beijing
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | cn-beijing |
Implementation Reference
- complete_fastmcp_server.py:65-83 (handler)The main handler function for the 'describe_ecs_zones' tool. It is registered via the @app.tool() decorator. The function imports common_api_tools and attempts to find and invoke a tool function containing 'zone' in its name with the provided region. If not found, it returns a message indicating the feature is available. This appears to be a wrapper/placeholder implementation.@app.tool() def describe_ecs_zones(region: str = "cn-beijing") -> str: """查询ECS可用区列表 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 'zone' in tool_func.__name__.lower(): result = tool_func(RegionId=region) return str(result) return f"ECS可用区查询功能可用,查询region: {region}" except Exception as e: return f"ECS可用区查询失败: {str(e)}"
- complete_fastmcp_server.py:65-65 (registration)The @app.tool() decorator registers the describe_ecs_zones function as an MCP tool.@app.tool()
- complete_fastmcp_server.py:66-71 (schema)Input schema defined by function signature: region (str, default 'cn-beijing'). Output: str. Includes docstring describing the parameter.def describe_ecs_zones(region: str = "cn-beijing") -> str: """查询ECS可用区列表 Args: region: 区域ID,如cn-beijing """
- Configuration file listing 'DescribeZones' as one of the ECS APIs, potentially used by dynamic tool generators to create actual API callers, though not directly used by this tool.'DescribeZones',