Skip to main content
Glama

css__UpdateShrinkNodes

Shrinks specified existing nodes in a Huawei Cloud CSS cluster by node ID to reduce capacity; subscription-based clusters are not supported.

Instructions

[CSS] 该接口可以对集群现有节点中指定节点进行缩容。包周期类型的集群不支持通过api进行指定节点缩容操作。

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": {
      "cluster_id": "<cluster_id>",
      "project_id": "<project_id>",
      "shrinkNodes": "<shrinkNodes>"
    },
    "name": "css__UpdateShrinkNodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cluster_idYes指定待缩容的集群ID。
project_idYes项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。
shrinkNodesYes需要缩容的节点ID。
migrate_dataNo是否迁移数据。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations and no output schema, the description carries the full behavioral burden. It usefully discloses a precondition (not valid for period-billed clusters), but says nothing about irreversibility, whether the call is asynchronous, what happens to workloads/data on the removed nodes, or how migrate_data changes outcomes for a mutation that removes capacity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: purpose first, then the disqualifying constraint. Every clause carries information and nothing is repeated from the schema or title.

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 four-parameter mutation with full schema coverage and no output schema, the description covers what the tool does and one important eligibility rule. The remaining gap is operational behavior (synchronous vs asynchronous completion, effect on data) which an agent planning a shrink would want, but the essentials to decide whether to call it are present.

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 every parameter is already documented in the schema, including the optional migrate_data. The description adds no additional semantics about parameter interaction (e.g., that migrate_data matters only when nodes hold data), so the baseline 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 description names a specific operation (缩容, scale down) on a specific resource (指定节点 in an existing cluster), which is clearly distinguishable from generic cluster operations. It does not explicitly contrast itself with the likely sibling css__UpdateShrinkCluster, so an agent must infer the difference from the name alone.

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

Usage Guidelines4/5

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

It gives a concrete exclusion: subscription/period-billed (包周期) clusters cannot use this API for node-level scale-down. That is real when-not guidance. It stops short of naming which alternative to use for those clusters or stating prerequisites such as cluster health or node drain state.

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