Skip to main content
Glama

cbh__ChangeInstanceNetwork

Modify a Cloud Bastion Host instance's network settings by updating its network interface cards and security groups for the specified server and project.

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": {
      "nics": "<nics>",
      "project_id": "<project_id>",
      "security_groups": "<security_groups>",
      "server_id": "<server_id>",
      "type": "<type>"
    },
    "name": "cbh__ChangeInstanceNetwork"
  }
}

Input Schema

NameRequiredDescriptionDefault
nicsYes云堡垒机实例修改后的网卡信息。
typeYes云堡垒机实例状态,枚举值如下:
server_idYes云堡垒机实例ID。云堡垒机实例状态为renewals或change时必传。
project_idYes项目ID。获取方法详见API参考,附录[获取项目ID](https://support.huaweicloud.com/api-cbh/cbh_02_0020.html)。
security_groupsYes云堡垒机实例修改后的安全组信息。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior1/5

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

With no annotations provided, the description carries the full behavioral burden and discloses nothing beyond the bare fact that this is a mutation. It does not say that replacing NICs or security groups may disrupt instance connectivity, whether changes are reversible, what permissions are needed, or what happens to existing configuration not listed.

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

Conciseness3/5

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

It is a single short sentence with a bracketed product prefix, so nothing is wasted, but the brevity here is under-specification rather than economy — there is no front-loaded scope statement or constraint the agent can act on.

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 five-parameter, all-required mutation tool with no annotations and no output schema, a one-line description is not enough. It leaves out the instance-state precondition, the network-disruption risk, and any hint of what the operation returns.

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 all five parameters (nics, type, server_id, project_id, security_groups) are already documented in the schema, including the conditional requirement on server_id. The description adds no meaning beyond that, so the baseline of 3 applies.

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

Purpose3/5

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

The description states a verb and resource ('修改云堡垒机实例网络'), so the agent knows it mutates the CBH instance's network configuration. However, 'network' is broad and overlaps with several siblings (SwitchInstanceVpc, UpdateInstanceSecurityGroup, ShowNetworkConfiguration) without saying which aspect this tool actually covers — the schema reveals it is NICs plus security groups, which the description never mentions.

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 at all: no indication of required instance state, no prerequisites, and no mention of when to prefer SwitchInstanceVpc or UpdateInstanceSecurityGroup instead. The only precondition hint (server_id required when state is renewals/change) lives in the schema, not the description.

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