Skip to main content
Glama
aliyun

Alibaba Cloud RDS OpenAPI MCP Server

Official
by aliyun

describe_vswitches

Read-only

List VSwitches in Alibaba Cloud by region, VPC, zone, or name. Supports pagination and filtering to retrieve only the desired virtual switches.

Instructions

Query VSwitch list.

Args:
    region_id: The region ID of the VSwitch. At least one of region_id or vpc_id must be specified.
    vpc_id: The ID of the VPC to which the VSwitch belongs. At least one of region_id or vpc_id must be specified.
    vswitch_id: The ID of the VSwitch to query.
    zone_id: The zone ID of the VSwitch.
    vswitch_name: The name of the VSwitch.
    resource_group_id: The resource group ID of the VSwitch.
    page_number: The page number of the list. Default: 1.
    page_size: The number of entries per page. Maximum value: 50. Default: 10.

Returns:
    Dict[str, Any]: The response containing the list of VSwitches.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vpc_idNo
zone_idNo
page_sizeNo
region_idNo
is_defaultNo
vswitch_idNo
page_numberNo
vswitch_nameNo
resource_group_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true. The description adds value by detailing pagination parameters (page_number, page_size) and required parameter constraints, disclosing behavior beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with Args and Returns sections, and the key action is front-loaded. It is slightly verbose due to the parameter list, but remains clear and effective.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all necessary aspects: purpose, parameters with constraints, pagination, and return type. With an output schema present, the return description is sufficient. Complete for a read-only list tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains the purpose of 8 out of 9 parameters (all except is_default), including constraints like 'At least one of region_id or vpc_id must be specified.' This adds significant meaning beyond the schema's titles and defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with 'Query VSwitch list,' providing a specific verb and resource. Listing parameters unique to VSwitches distinguishes it from sibling tools like describe_db_instances or describe_vpcs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states that at least one of region_id or vpc_id must be specified, which is a usage hint. However, it does not compare to other tools or explain when to prefer this tool over alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/aliyun/alibabacloud-rds-openapi-mcp-server'

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