Skip to main content
Glama

as__DeleteScalingGroup

Deletes a specified Auto Scaling group, with an option to force deletion by removing and releasing its ECS instances when scaling activities are ongoing.

Instructions

[AS] 删除一个指定弹性伸缩组。force_delete属性表示如果伸缩组存在ECS实例或正在进行伸缩活动,是否强制删除伸缩组并移出和释放ECS实例。默认值为no,表示不强制删除伸缩组。如果force_delete的值为no,必须满足以下两个条件,才能删除伸缩组:条件一:伸缩组没有正在进行的伸缩活动。条件二:伸缩组当前的ECS实例数量(current_instance_number)为0。如果force_delete的值为yes,伸缩组会被置于DELETING状态,拒绝接收新的伸缩活动请求,然后等待已有的伸缩活动完成,最后将伸缩组内所有ECS实例移出伸缩组(用户手动添加的ECS实例会被移出伸缩组,弹性伸缩自动创建的ECS实例会被自动删除)并删除伸缩组。

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
force_deleteNo是否强制删除伸缩组。默认为no;可选值为yes或no。
scaling_group_idYes伸缩组ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it does this well. It states the default of force_delete=no and the exact conditions required to delete in that mode. It also spells out the consequences of force_delete=yes: the group enters DELETING, rejects new scaling activities, waits for existing activities to finish, removes all ECS instances, and automatically deletes instances that autoscaling created.

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?

The purpose is front-loaded in the first clause, and the rest of the text builds out the force_delete semantics. It is dense but relevant. The default value of 'no' is stated twice, causing minor redundancy that keeps it from a 5.

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 destructive mutation tool with no annotations and no output schema, the description covers the critical decision logic and side effects thoroughly. It does not say whether the delete is irreversible or what the call returns, such as a task ID or the group's state, which an agent might want to know. Those are moderate rather than fatal gaps.

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 coverage is 100%, so a baseline of 3 would already be defensible. The description still adds substantive meaning to force_delete by explaining what each enum value causes operationally, which the one-line schema description ('是否强制删除伸缩组。默认为no') does not capture. project_id and scaling_group_id get no extra explanation, but they are self-describing in the schema.

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 opens with a specific verb and resource: '[AS] 删除一个指定弹性伸缩组' (delete a specified scaling group). That clearly separates it from siblings that delete other resources such as DeleteScalingConfig, DeleteScalingInstance, or DeleteScalingPolicy. The only gap is that it never states this explicitly in relation to those siblings.

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?

The description gives concrete preconditions for the non-forced path: no scaling activity in progress and current_instance_number must be 0. That is real usage guidance, not just a restatement of the name, so it goes beyond a bare 'what'. It stops short of naming alternatives or exclusions, such as pausing a group instead of deleting it.

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