Skip to main content
Glama

as__BatchProtectScalingInstances

Batch sets or cancels instance protection for Huawei Cloud Auto Scaling group instances, and handles batch add, remove, or standby state changes.

Instructions

[AS] 批量移出伸缩组中的实例或批量添加伸缩组外的实例。批量对伸缩组中的实例设置或取消其实例保护属性。批量将伸缩组中的实例转入或移出备用状态。

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__BatchProtectScalingInstances"
  }
}

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

C2.3/5.0
Behavior2/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 never states whether removing instances deletes the underlying servers, whether operations are async, what permissions are required, or whether the effects are reversible—all critical for a mutation tool of this family.

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?

Three sentences, reasonably compact and front-loaded, but each sentence enumerates an operation family rather than adding distinct information, producing redundancy rather than precision.

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 a 6-parameter, 4-required mutating batch tool with no annotations and no output schema, the description omits the effects of removal, whether deletion of servers occurs, and the interaction between action and the conditional fields (instance_append/instance_delete). The enumeration of unrelated operations leaves the agent less informed, not more.

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%, with per-parameter descriptions and enums for action, instance_append and instance_delete, so the schema already does the heavy lifting. The description adds nothing about parameter semantics beyond repeating the operation list; baseline 3 is appropriate.

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?

The description bundles four distinct operations (add, remove, protect/unprotect, standby enter/exit) into one 'batch' description, so the agent cannot tell what this specific tool does versus its siblings BatchAddScalingInstances, BatchRemoveScalingInstances, BatchSetScalingInstancesStandby, etc. This is worse than merely vague: the actual action enum only allows 'PROTECT', so the description advertises a broader scope than the tool can execute.

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 or when-not-to-use guidance, and no routing to alternatives. Since the description's listed operations overlap almost entirely with multiple sibling tools, the agent is given no way to choose correctly between them.

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