Skip to main content
Glama

as__DeleteLifecycleHook

Deletes a specified lifecycle hook from an Auto Scaling group; use it to remove hooks when no scaling activity is in progress.

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
scaling_group_idYes伸缩组标识。
lifecycle_hook_nameYes生命周期挂钩标识。

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?

No annotations are supplied, so the description has to carry the full burden of behavioral disclosure. It usefully states the precondition that blocks deletion during scaling activities, but it omits related behavior: required permissions, whether the call is idempotent, what happens to instances bound to the hook, and what an error response looks like.

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 short sentences, front-loaded with the action and then the constraint. The '[AS]' prefix is mild noise, but nothing else in the description is wasted.

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 tool with no annotations and no output schema, the description covers the action and one precondition but leaves failure modes, dependency cleanup, and permission requirements unaddressed.

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 all three path parameters are already documented in the schema. The description adds no further detail about the identifiers beyond what the schema 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?

States a specific verb and resource: delete a specified lifecycle hook ('[AS] 删除一个指定生命周期挂钩'). The action is unambiguous against siblings such as CreateLifyCycleHook, UpdateLifeCycleHook, and ShowLifeCycleHook, though no sibling is named explicitly.

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?

Gives a concrete when-not condition: the hook cannot be deleted while the scaling group is carrying out scaling activities. It does not mention alternatives or how to check whether scaling is in progress, so it stops short of full routing guidance.

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