Skip to main content
Glama

Alibaba Cloud Operations MCP Server

by RadiumGu

describe_vpcs

Retrieve a list of VPCs within a specified region using the tool on the Alibaba Cloud Operations MCP Server. Simplifies querying VPC details for efficient cloud management.

Instructions

查询VPC列表

Args: region: 区域ID,如cn-beijing

Input Schema

NameRequiredDescriptionDefault
regionNocn-beijing

Input Schema (JSON Schema)

{ "properties": { "region": { "default": "cn-beijing", "title": "Region", "type": "string" } }, "title": "describe_vpcsArguments", "type": "object" }

Implementation Reference

  • The primary MCP tool handler for 'describe_vpcs'. It imports common_api_tools and attempts to invoke a tool with 'vpc' in its name, passing RegionId. Falls back to a status message if not found or on error.
    @app.tool() def describe_vpcs(region: str = "cn-beijing") -> str: """查询VPC列表 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 'vpc' in tool_func.__name__.lower(): result = tool_func(RegionId=region) return str(result) return f"VPC查询功能可用,查询region: {region}" except Exception as e: return f"VPC查询失败: {str(e)}"
  • Configuration listing 'DescribeVpcs' as a registered API for the 'Vpc' service, likely used to dynamically generate or support the underlying API call.
    'Vpc': [ 'DescribeVpcs', 'DescribeVSwitches' ],

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