Skip to main content
Glama
RadiumGu

Alibaba Cloud Operations MCP Server

by RadiumGu

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
NameRequiredDescriptionDefault
regionNocn-beijing

Implementation Reference

  • 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)}"
  • The @app.tool() decorator registers the describe_ecs_zones function as an MCP tool.
    @app.tool()
  • 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',

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RadiumGu/alicloud-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server