Skip to main content
Glama

workspace__CreateDesktop

Creates cloud desktops and assigns them to specified users so they can log in and use the desktops after provisioning.

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": {
      "desktop_type": "<desktop_type>",
      "image_id": "<image_id>",
      "image_type": "<image_type>",
      "product_id": "<product_id>",
      "project_id": "<project_id>",
      "root_volume": "<root_volume>"
    },
    "name": "workspace__CreateDesktop"
  }
}

Input Schema

NameRequiredDescriptionDefault
eipNoEIP信息。
nicsNo桌面对应的网卡信息,如果不指定则使用默认网卡。
sizeNo创建不分配用户的桌面的个数,和desktops不能同时生效,搭配desktop_name使用。
tagsNo标签列表。
desktopsNo创建桌面使用的参数列表。长度为1-100。
image_idYes镜像ID,用于私有镜像创建桌面场景,配合product_id使用。
image_typeYes镜像类型。默认值为private。private
product_idYes套餐ID。
project_idYes项目ID。
desktop_ipsNo桌面指定分配的ip地址列表,最小为0,最大为100。
root_volumeYes磁盘。
data_volumesNo数据盘列表。
desktop_nameNo搭配size使用,当size为1时代表桌面名,位数1-15,当size大于1时代表桌面名前缀,位数:1-13。
desktop_typeYes云桌面类型。
security_groupsNo桌面使用的安全组,如果不指定则默认使用桌面代理中指定的安全组。
availability_zoneNo可用分区。将桌面创建到指定的可用分区。如果不指定则使用系统随机的可用分区。
email_notificationNo创建成功后是否发送邮件通知桌面用户,默认为true。
enterprise_project_idNo企业项目ID,默认"0。"0
desktop_name_policy_idNo策略id,用于指定生成桌面名称策略,如果指定了桌面名称则优先使用指定的桌面名称。
hour_package_product_idNo桌面小时包套餐ID。
hour_package_offering_idNo桌面小时包offeringID。
apply_shared_vpc_dedicated_paramNo共享Vpc专线入参。

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 behavioral burden for a mutating, resource-consuming operation. It does not mention billing implications, quota limits, whether creation is asynchronous, what happens on partial failure across the 1-100 desktops list, or permission requirements. Only the post-condition (user can log in) is disclosed, which is minimal for a create operation of this scale.

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 with the verb and contains no filler, but its brevity crosses into under-specification for a tool with 22 parameters and several competing siblings. A brief clause on when to prefer this over the order/pool variants would earn its place.

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 22-parameter creation tool with nested objects, no annotations, and no output schema, the description should at least sketch what is returned (desktop IDs?) and the synchronous/asynchronous nature of creation. It leaves the caller without enough context to invoke confidently beyond the schema field definitions.

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

Parameters4/5

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

Schema description coverage is 100%, so every one of the 22 parameters, including nested objects like eip, nics, root_volume and desktops, is documented in the schema itself. The description adds only the high-level user-assignment semantic, which is acceptable given the schema does the heavy lifting.

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 states a specific verb and resource in '创建桌面' (create desktop) and adds the key outcome that the desktop is assigned to a user who can then log in. This is clearly a creation tool, not a delete/list/order tool. However, it gives no hint about how it differs from close siblings such as workspace__CreateDesktopOrder, workspace__CreateDesktopBatchOrder, or workspace__CreateDesktopPool, so the agent must guess which creation path applies.

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 instead of the many sibling creation tools (single desktop vs. batch order vs. desktop pool). No prerequisites, no mention of required permissions or project scoping, and no exclusions. The agent is left to infer usage entirely 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