Skip to main content
Glama

as__BatchAddScalingInstances

Adds up to 10 existing cloud servers to a Huawei Cloud Auto Scaling group in one batch, enforcing maximum instance and availability zone limits.

Instructions

[AS] 批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。说明:- 单次最多批量操作实例个数为10。批量添加后实例数不能大于伸缩组的最大实例数,批量移出后实例数不能小于伸缩组的最小实例数。- 当伸缩组处于INSERVICE状态且没有伸缩活动时,才能添加实例。- 当伸缩组没有伸缩活动时,才能移出实例。- 向伸缩组中添加实例时,必须保证实例所在的可用区包含于伸缩组的可用区内。- 实例处于INSERVICE状态时才可以进行移出、设置或取消实例保护属性等操作。- 当伸缩组发生自动缩容活动时,设置了实例保护的实例不会被移出伸缩组。- 批量移出弹性伸缩组中的实例时,若该实例加入伸缩组时绑定的监听器和伸缩组本身的监听器相同,会解绑定实例和监听器。若该实例加入伸缩组时绑定的监听器和伸缩组本身的监听器不同,会保留实例和监听器的绑定关系。

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": {
      "action": "<action>",
      "instances_id": "<instances_id>",
      "project_id": "<project_id>",
      "scaling_group_id": "<scaling_group_id>"
    },
    "name": "as__BatchAddScalingInstances"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes批量操作实例action标识:添加:ADD 移除: REMOVE 设置实例保护: PROTECT 取消实例保护: UNPROTECT;转入备用状态:ENTER_STANDBY 移出备用状态:EXIT_STANDBY
project_idYes项目ID。
instances_idYes云服务器ID。
instance_appendNo将实例移入备用状态时,是否补充新的云服务器。取值如下:no:不补充新的实例,默认情况为no。yes:补充新的实例。只有action为ENTER_STANDBY时,这个字段才生效。
instance_deleteNo从伸缩组中移出实例时,是否删除云服务器。默认为no;可选值为yes或no。只有action为REMOVE时,这个字段才生效。
scaling_group_idYes实例ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3/5.0
Behavior4/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 discloses important side effects and constraints: the 10-instance batch limit, state and AZ preconditions, protection behavior during scale-in, and listener unbinding when removing. It omits auth, rate-limit, and response details but is unusually rich for this domain.

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?

The text is dense and front-loaded, but a large portion describes remove, protect, unprotect, and standby operations that are not obviously within this tool's ADD-only enum. For a single-purpose tool, those sentences do not earn their place and create ambiguity despite the detail being relevant to the broader API family.

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 6-parameter mutation tool with no annotations and no output schema, the description gives solid behavioral constraints and side effects. However, it does not resolve whether this tool supports all listed actions or only ADD, nor does it route the agent to the specialized sibling tools. That omission is material for correct invocation.

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 the schema already documents action values and the conditional fields instance_append and instance_delete. The description adds only batch-size and operational precondition context, not parameter-specific syntax. It also repeats all action values while the schema enum only permits ADD, contributing to action confusion.

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

Purpose3/5

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

The description opens with batch remove/add, then set/cancel protection and standby transitions, covering multiple operations rather than the tool named BatchAddScalingInstances. It does not distinguish this tool from sibling batch-operation tools, so an agent cannot confidently select it based on purpose alone.

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?

It lists operational preconditions such as INSERVICE state, no scaling activity, AZ containment, max/min counts, and the 10-instance limit, but gives no guidance on when to choose this tool over the sibling batch-operation tools. The broad scope may actively mislead an agent into using it for remove, protect, or standby actions that have dedicated siblings.

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