Skip to main content
Glama

workspace__BatchRunDesktops

Batch-manage Huawei Cloud Workspace desktops by powering on, shutting down, hibernating, or restarting multiple desktops in one request, with normal or forced operation modes.

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_ids": "<desktop_ids>",
      "op_type": "<op_type>",
      "project_id": "<project_id>"
    },
    "name": "workspace__BatchRunDesktops"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSOFT:普通操作;HARD:强制操作。例如type为HARD,op_type为os-stop代表强制关机。
op_typeYes操作类型。
project_idYes项目ID。
desktop_idsYes操作的桌面ID列表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/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 burden. It confirms a state-changing power operation but says nothing about irreversibility, that forced (HARD) operations can lose unsaved data, permission requirements, or what happens when some of the batch fails. For a mutation tool this is a meaningful gap.

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 compact sentence with the workspace tag and the action scope front-loaded; nothing is padded or redundant. Its brevity is appropriate, though it leaves behavioral gaps that a second sentence could have filled.

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 batch mutation affecting up to 100 desktops, with no annotations and no output schema, the description should address side effects, force-operation risk, and partial-failure behavior. None of that is present, so the definition is thin relative to the tool's complexity.

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%, including the SOFT/HARD enum semantics, so the baseline is 3. The description adds no parameter-level meaning of its own — it never ties the listed operations to the op_type values or explains the desktop_ids batch limit.

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 ("批量操作桌面") and enumerates the four power operations it covers (开机、关机、休眠、重启), which is more than the name alone conveys. It does not explicitly contrast itself with siblings such as BatchDeleteDesktops or BatchRebuildDesktopsSystemDisk, but the enumerated operations make its scope reasonably distinguishable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Saying the tool is used for batch power-on, power-off, hibernate and restart implies when to reach for it, but there is no explicit when-not guidance, no mention that desktops must be in a particular state, and no pointer to alternatives for deletion or rebuild. Usage is inferable but not directed.

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