Skip to main content
Glama

cbh__SwitchInstanceVpc

Switch a Cloud Bastion Host instance to a different VPC by specifying the target VPC ID, subnet, private IP, public IP, and security groups for the instance.

Instructions

[CBH] 切换堡垒机虚拟私有云

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "network": "<network>",
      "project_id": "<project_id>",
      "server_id": "<server_id>"
    },
    "name": "cbh__SwitchInstanceVpc"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkYes切换云堡垒机实例vpc所需网络信息。
server_idYes需要切换vpc的实例id
project_idYes项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it discloses almost nothing. Switching a VPC is a disruptive mutation that can change the instance's private IP, subnet, and security groups, yet the description says nothing about downtime, reversibility, required permissions, or whether the operation is asynchronous. Only the fact that it is a mutation is implied by 'switch'.

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?

A single short, front-loaded sentence with no filler or repetition. Its brevity is efficient, though it borders on under-specification rather than tight writing.

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

Completeness2/5

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

For a disruptive mutation with a deeply nested network object, no annotations, and no output schema, one sentence is far too thin. An agent gets no information about state requirements, expected outcome, or error conditions, all of which the description would need to supply here.

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

Parameters3/5

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

Schema description coverage is 100%, so the nested network, server_id, and project_id fields are already documented in the schema. The description adds no meaning beyond that, so the baseline of 3 applies. It also does not flag the schema's notable inconsistency between the example keys (vpcId/subnetId) and the declared required keys (vpc_id/subnet_id/public_ip/security_groups).

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

Purpose4/5

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

The description names a specific verb and resource: switch (切换) the VPC (虚拟私有云) of a bastion host instance (堡垒机). An agent can tell it is a network reconfiguration operation on a CBH instance. It does not, however, differentiate itself from near-siblings such as cb__ChangeInstanceNetwork or cb__UpdateInstanceSecurityGroup, which also touch instance networking.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., instance state, whether the instance must be stopped), and no mention of alternatives or consequences. The agent must infer everything about applicability from the name alone.

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

Deploy Server

Other Tools