Skip to main content
Glama

workspace__UpdateDesktopUsername

Updates the username associated with a Huawei Cloud Workspace desktop in an AD scenario, with an option to reboot the VM after the change.

Instructions

[WORKSPACE] AD场景支持桌面更换关联用户名。

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_username": "<new_username>",
      "old_username": "<old_username>",
      "project_id": "<project_id>"
    },
    "name": "workspace__UpdateDesktopUsername"
  }
}

Input Schema

NameRequiredDescriptionDefault
is_rebootNo桌面关联新用户名后是否重启虚拟机,默认不重启。
project_idYes项目ID。
new_usernameYes桌面关联新用户名,只传用户名,不带域信息。
old_usernameYes桌面关联原用户名,只传用户名,不带域信息。

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, yet it discloses almost nothing. It does not say that this is a mutation, whether the old association is destroyed, what happens if the old username does not match, how permissions and AD-domain requirements work, or what the is_reboot trade-off involves. That is a major gap for a write operation with zero annotation coverage.

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 a single short sentence with no wasted words, and it is front-loaded, but it is so terse that it reads as under-specified rather than efficient.

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 no annotations and no output schema, the definition is incomplete. It never addresses irreversibility, permissions, AD preconditions, reboot side effects, or failure modes. The schema covers the inputs, but the behavioral context an agent needs in order to call this safely is missing.

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?

Because schema description coverage is 100%, the schema already documents all four parameters, including the reboot flag and the 'username only, no domain' constraint. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 applies.

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 action and resource: changing the username associated with a desktop, scoped to AD scenarios. It is distinguishable from a generic UpdateDesktop, but it does not differentiate itself from other desktop-mutation siblings such as UpdateDesktopSids.

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?

The phrase "AD场景" (AD scenario) implies a precondition, namely that the environment must be an AD deployment. However, it gives no explicit guidance on when to choose this tool over UpdateDesktop or other siblings, and it states no exclusions or prerequisites, such as admin rights or the desktop's state.

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