Skip to main content
Glama

workspace__ExecuteDesktopPoolScript

Runs scripts or commands across a Huawei Cloud desktop pool in controlled batches, with optional pre/post steps and gray rollout limits to manage failures.

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": {
      "pool_id": "<pool_id>",
      "project_id": "<project_id>"
    },
    "name": "workspace__ExecuteDesktopPoolScript"
  }
}

Input Schema

NameRequiredDescriptionDefault
pool_idYes桌面池ID。
pre_startNo执行脚本前置步骤。
gray_countNo首批执行的桌面数量,优先级高于gray_desktop_ids。
project_idYes项目ID。
script_idsNo执行的脚本id列表,与command二选一。
post_finishNo执行脚本完成后置步骤,当前支持关机(stop)、重启(reboot)。
command_typeNo命令行类型,执行命令行时必传。
command_contentNo执行的命令行,与script_ids二选一。
gray_desktop_idsNo首批执行的桌面id列表,优先级低于gray_count。
execution_timeoutNo执行脚本的超时时间,单位分钟,默认1分钟。
gray_fail_thresholdNo灰度失败阈值,灰度执行失败次数达到该值时,不执行下一批任务。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/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, and it discloses nothing: not that this launches script execution on live desktops (a mutating, potentially disruptive operation), not the grayscale batching semantics implied by gray_count/gray_desktop_ids, and not the pre/post steps or timeout behavior. Only the word "批量" hints at batching.

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?

A single short sentence with no filler, so nothing needs trimming, but its brevity comes from omission rather than discipline. The "[WORKSPACE]" namespace prefix is noise that consumes a third of the text.

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 an 11-parameter batch execution tool with no annotations, no output schema, and mutating side effects on desktops, the definition is far too thin. The schema compensates for parameter-level detail, but nothing tells the agent what the operation does to the target machines or how the grayscale rollout behaves.

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 11 parameters (including the script_ids vs. command_content either/or, command_type, gray_count priority over gray_desktop_ids, and execution_timeout) are already documented in the schema. The description adds no meaning beyond it; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"[WORKSPACE] 桌面池批量执行脚本。" restates the tool name ExecuteDesktopPoolScript almost verbatim: pool + batch + execute script. It adds no specificity about what is executed (registered scripts vs. inline command), and nothing distinguishes it from siblings such as workspace__ExecuteScriptOrCommand or coc__ExecuteScript. Borderline tautology rather than a clear statement of purpose.

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 when-to-use guidance at all: no condition selecting this over workspace__ExecuteScriptOrCommand, no prerequisite or scope notes, and no exclusions. The agent must infer the tool's role purely from the name and the sibling list.

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