Skip to main content
Glama

cbh__ResetPassword

Resets the admin password for a Cloud Bastion Host instance's web login using the instance ID, project ID, and new password.

Instructions

[CBH] 修改云堡垒机实例web登录admin用户密码。

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": {
      "new_password": "<new_password>",
      "project_id": "<project_id>",
      "server_id": "<server_id>"
    },
    "name": "cbh__ResetPassword"
  }
}

Input Schema

NameRequiredDescriptionDefault
server_idYes云堡垒机实例ID,使用UUID格式。
project_idYes项目ID。获取方法详见API参考,附录[获取项目ID](https://support.huaweicloud.com/api-cbh/cbh_02_0020.html)。
new_passwordYesadmin用户修改后的新密码,8-32位,大写字母、小写字母、数字和特殊字符。

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 supplied, so the description carries the full behavioral burden for a destructive credential mutation. It says nothing about irreversibility, whether active sessions are invalidated, whether the old password must be known (the schema requires only new_password), or whether the change is immediate or asynchronous.

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 front-loaded sentence with the resource tag first and no filler. It is efficient, but its brevity is partly under-specification rather than disciplined concision.

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 mutation tool with zero annotations and no output schema, the definition is thin. It never indicates the outcome of a successful call, failure modes such as a non-compliant password, or access requirements, leaving real gaps an agent would need to fill.

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 coverage is 100% and each parameter carries its own description including the 8-32 character password policy, so the baseline is 3. The description adds only the fact that the password belongs to the admin account, which the schema already states, and gives no new meaning for server_id or project_id.

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?

States a specific verb (修改/change password) and an exact target: the admin user used for web login on a CBH instance. This distinguishes it reasonably from generic password-reset siblings such as css__ResetPassword or ecs__ResetServerPassword, though it never names any alternative.

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, when-not-to-use, or prerequisite guidance. The description does not say whether the instance must be running, whether the caller needs admin rights, or how this differs from cbh__ResetInstancePassword; the agent must infer all of that.

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