Skip to main content
Glama

workspace__AttachInstances

Assigns Workspace desktops to users or user groups so they can access assigned desktops, with optional email notification and desktop data clearing controls.

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>"
    },
    "name": "workspace__AttachInstances"
  }
}

Input Schema

NameRequiredDescriptionDefault
desktopsNo桌面信息列表。
image_idNo模板ID,涉及变更镜像时需传(可选)。
image_typeNo镜像类型,涉及变更镜像时需传(可选)。
project_idYes项目ID。
desktop_name_policy_idNo策略id,用于指定生成桌面名称策略,如果指定了桌面名称则优先使用指定的桌面名称。

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 and it discloses almost nothing. It never mentions that assigning a desktop replaces an existing binding, that is_clear_data defaults to true and wipes desktop data on same-user rebinding, or what permissions and failure modes apply — all of which are destructive traits an agent must know before calling.

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?

It is a single short sentence with no wasted words and the action is front-loaded. The leading '[WORKSPACE]' tag is mild noise, and the brevity comes at the cost of useful content rather than from tight editing.

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?

This is a complex mutation tool with five parameters, nested desktop objects, user/group binding semantics, optional image change fields and a name policy. With no annotations and no output schema, a one-line description leaves the agent without the reassignment, data-clearing and multi-user behavior it needs.

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 the schema already documents desktops, image_id, image_type, project_id and desktop_name_policy_id in detail. The description adds no parameter meaning beyond the schema, 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 sentence names a concrete verb and resource pair — assign desktops to users — so the action is unambiguous. It does not distinguish this tool from the sibling workspace__BatchAttachInstances, leaving the single-vs-batch distinction to be inferred from the schema's maxItems: 50.

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?

No when-to-use guidance is offered: nothing states when to pick this over BatchAttachInstances, BatchAssociateInstances, or DetachInstances, nor are prerequisites such as the target desktop being unassigned or the project context mentioned.

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