Skip to main content
Glama

workspace__CreateDesktopUser

Creates a desktop user in a Huawei Cloud Workspace project using a username and project ID, with optional password, group, contact, and activation settings for end-user access.

Instructions

[WORKSPACE] 该接口用于创建桌面用户。

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": {
      "project_id": "<project_id>",
      "user_name": "<user_name>"
    },
    "name": "workspace__CreateDesktopUser"
  }
}

Input Schema

NameRequiredDescriptionDefault
passwordNo用户初始密码。管理员激活模式需要输入。
group_idsNo用户组的专有ID列表。
user_nameYes用户名称。
alias_nameNo别名。
project_idYes项目ID。
user_emailNo用户邮箱。
user_phoneNo用户手机号。
active_typeNo激活类型,默认为用户激活。
descriptionNo用户描述,字符串长度区间[0, 255]。
user_info_mapNo用户信息映射,包含用户的服务等级、操作模式和类型。
account_expiresNo账户过期时间,0表示永远不过期。时间格式:yyyy-MM-ddTHH:mm:ssZ或yyyy-MM-ddTHH:mm:ss.SSSZ。
enterprise_project_idNo企业项目ID
enable_change_passwordNo是否允许用户更改密码,缺省值为true,后续此字段无效,创建时都为true。
next_login_change_passwordNo下次登录是否必须更改密码,缺省值为true。后续此字段无效,创建时都为true。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/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 burden and provides essentially nothing: it does not state required permissions, whether the user is immediately usable after creation, how activation mode affects the outcome, or that creation is a persistent, side-effecting mutation. The only behavioral signal is the implicit verb 'create', which the agent could already derive from the name.

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?

The single sentence is front-loaded and free of padding beyond the '[WORKSPACE]' tag and the filler phrase '该接口用于'. Its size is not the problem; the sentence is simply too thin to carry any operational information, so brevity here borders on under-specification.

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

Completeness1/5

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

For a 14-parameter mutation tool with no annotations and no output schema, a one-line restatement of the name is wholly inadequate. Nothing explains the activation-mode implications, password requirements for ADMIN_ACTIVATE, immutability of enable_change_password/next_login_change_password, or what a successful creation 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 14 parameters — including password, group_ids, active_type, and account_expires — are already documented in the schema. The description adds no meaning beyond that, which is acceptable given the baseline for fully covered schemas but represents no added value.

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 gives a specific verb and resource combination ('创建桌面用户'), so an agent can immediately tell this creates a desktop user rather than a group, pool, or desktop instance. It does not, however, distinguish itself from related siblings such as workspace__CreateUserGroup or the desktop-creation tools, leaving that differentiation to the tool name.

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 guidance on when to use this tool versus alternatives, no preconditions (e.g., project must exist, admin privileges, whether the user group must be created first), and no mention of when not to use it. Usage must be entirely inferred from the name.

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