describe_ecs_regions
List available ECS regions to deploy cloud resources in Alibaba Cloud environments.
Instructions
查询ECS可用区域列表
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "describe_ecs_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- complete_fastmcp_server.py:49-63 (handler)The primary handler and registration for the MCP tool 'describe_ecs_regions'. Decorated with @app.tool() in FastMCP framework. It dynamically searches for a region-related tool in common_api_tools.tools and calls it if found; otherwise returns a message indicating the feature is available. Currently acts as a stub since no matching tool exists.
@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)}"