Skip to main content
Glama

as__DeleteScalingInstance

Removes a specified instance from an Auto Scaling group and optionally deletes the ECS instance, respecting INSERVICE status, group activity, and minimum capacity conditions.

Instructions

[AS] 从弹性伸缩组中移出一个指定实例。实例处于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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "as__DeleteScalingInstance"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
instance_idYes实例ID,可参考[查询弹性伸缩组中的实例列表](https://support.huaweicloud.com/api-as/as_06_0301.html)获取。
instance_deleteNo实例移出伸缩组,是否删除云服务器实例。默认为no;可选值为yes或no。no

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load. It does disclose the three eligibility conditions well, which is real behavioral value, but it is silent on whether the underlying ECS/cloud server instance gets destroyed (that behavior is hidden in the instance_delete parameter) and on irreversibility or permission requirements for a destructive operation.

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?

Three short sentences, front-loaded with the action, then the constraints in descending importance. No filler or repetition, though the constraints are packed into single clauses without any formatting that would help an agent scan them.

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, annotation-free tool with three parameters, the definition covers eligibility but omits the consequence of the call — whether the compute instance survives — and says nothing about the response. The schema fills the parameter gap, but the destructive semantics deserve explicit statement here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description rises slightly above it by explaining the runtime conditions (INSERVICE, minimum capacity) that govern whether the instance_id argument is even accepted. It adds nothing about project_id or the yes/no instance_delete semantics beyond what the schema already states.

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 gives a specific verb and resource ('从弹性伸缩组中移出一个指定实例' – remove one specified instance from a scaling group) and names the '[AS]' service prefix. It is clear what the tool does, but it never distinguishes itself from the batch sibling (as__BatchRemoveScalingInstances), leaving the agent to infer single-vs-multiple scope.

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?

Strong precondition guidance: the instance must be in INSERVICE state, the post-removal count must stay at or above the group's minimum instance count, and no scaling activity may be in progress. What's missing is routing guidance — it never says to use the batch removal tool when more than one instance must be removed.

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