Skip to main content
Glama

css__UpdateShrinkCluster

Shrinks a specified CSS cluster by reducing node counts and storage capacity for selected instance types; use it for resource scale-down where API-based node-type shrink is 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>",
      "shrink": "<shrink>"
    },
    "name": "css__UpdateShrinkCluster"
  }
}

Input Schema

NameRequiredDescriptionDefault
shrinkYes需要缩容的节点类型和数量集合。
cluster_idYes指定待缩容的集群ID。
project_idYes项目ID。获取方法请参见[获取项目ID和名称](css_03_0071.xml)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses one meaningful behavioral constraint (billing-type restriction), but omits that a shrink is a destructive, typically irreversible operation, and says nothing about permissions or failure behavior.

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?

Two sentences, front-loaded with the core purpose followed by the caveat. No filler, though the bracketed [CSS] tag is low-value overhead.

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

Completeness3/5

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

For a destructive mutation with no annotations and no output schema, the description covers purpose and one constraint but leaves irreversibility, permission requirements, and error behavior unstated. Adequate but with clear gaps.

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 coverage is 100%, so the schema already documents all three parameters. The description adds only that shrink targets instance count and storage per type, and notably mentions storage capacity though no storage parameter exists in the schema — a mild mismatch rather than added precision.

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 states a specific verb (shrink) and resource (cluster), and names the two dimensions affected — instance count by type and storage capacity. It is clear what the tool does, though it does not explicitly contrast with siblings like css__UpdateShrinkNodes or css__UpdateExtendCluster.

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 when-not condition: period-billed (包周期) clusters cannot use node-type-specified shrink via API. That is a clear exclusion, but no alternative tool or route is named for those cases, so the agent must infer the fallback.

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