Skip to main content
Glama

workspace__ResizeDesktop

Changes CPU and memory specifications for one or more cloud desktops, stopping running desktops first when required; disk changes and same-spec updates are unsupported.

Instructions

[WORKSPACE] 变更云桌面规格,只支持变更CPU和内存,不支持变更磁盘,不支持同规格互相变更。

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": {
      "desktops": "<desktops>",
      "mode": "<mode>",
      "product_id": "<product_id>",
      "project_id": "<project_id>"
    },
    "name": "workspace__ResizeDesktop"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes是否支持开机状态下执行变更规格操作。固定传值STOP_DESKTOP,如果桌面处于开机状态,会先关机再变更规格。
desktopsYes桌面数据。支持批量按需类型桌面变更为同一规格。
product_idYes套餐id。批量变更时,则变更为同一规格的虚拟机。
project_idYes项目ID。
auto_placementNo是否自动放置,专属主机桌面变更规格时使用,默认是off关闭自动放置,on表示开启自动放置。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/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 does disclose real behavioral constraints—only CPU/memory are mutable, disks are untouched, same-spec changes are rejected—but omits that the operation forces a shutdown first (only stated in the schema), whether it is asynchronous, and any billing or reversibility implications of a mutation.

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 scope constraint front-loaded right after the workspace tag. Every clause carries a restriction the agent needs; only the redundant bracketed tag slightly dilutes it.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description supplies the critical scoping rules, and the unusually rich schema covers parameter behavior and the forced shutdown. What remains missing—return format and async/charging behavior—is modest given the schema's coverage.

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 five parameters including the STOP_DESKTOP mode semantics and batch limit are already documented in structured data. The description adds no parameter-level meaning beyond the schema, making the baseline 3 appropriate.

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?

States a specific verb and resource (change cloud desktop specifications) and immediately bounds the scope to CPU and memory while excluding disk changes and same-spec changes. It does not explicitly name a sibling such as ResizeDesktopPool to distinguish single-desktop from pool-level resizing, so it stops short of 5.

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?

The description gives exclusion rules (no disk changes, no same-spec changes), which implicitly tells the agent when this tool is invalid. However, it offers no positive when-to-use guidance and never routes the agent to an alternative for disk changes (e.g., AddDesktopVolumes) or pool operations, leaving selection to inference.

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