Skip to main content
Glama

as__UpdateLifeCycleHook

Modify a specified Auto Scaling lifecycle hook's type, timeout, default callback action, and notification target to control how instances launch or terminate.

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
default_resultNo生命周期挂钩默认回调操作。默认情况下,到达超时时间后执行的操作。ABANDON;CONTINUE;如果实例正在启动,则 CONTINUE 表示用户自定义操作已成功,可将实例投入使用。否则,ABANDON 表示用户自定义操作未成功,终止实例,伸缩活动置为失败,重新创建新实例。如果实例正在终止,则 ABANDON 和 CONTINUE 都允许终止实例。不过,ABANDON 将停止其他生命周期挂钩,而 CONTINUE 将允许完成其他生命周期挂钩。该字段缺省时默认为 ABANDON。
default_timeoutNo生命周期挂钩超时时间,取值范围60-86400,默认为3600,单位是秒。默认情况下,实例保持等待状态的时间。您可以延长超时时间,也可以在超时时间结束前进行 CONTINUE 或 ABANDON 操作。
scaling_group_idYes伸缩组标识。
lifecycle_hook_nameYes生命周期挂钩标识。
lifecycle_hook_typeNo生命周期挂钩类型。INSTANCE_TERMINATING。INSTANCE_LAUNCHING。INSTANCE_TERMINATING 类型的挂钩负责在实例终止时将实例挂起,INSTANCE_LAUNCHING 类型的挂钩则是在实例启动时将实例挂起。
notification_metadataNo自定义通知消息,长度不超过256位,不能包含字符< > & ' ( )当配置了通知目标时,可向其发送用户自定义的通知内容。
notification_topic_urnNoSMN 服务中 Topic 的唯一的资源标识。为生命周期挂钩定义一个通知目标,当实例被生命周期挂钩挂起时向该通知目标发送消息。该消息包含实例的基本信息、用户自定义通知消息,以及可用于控制生命周期操作的令牌信息。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only says 'modify information'. It does not disclose whether unspecified fields are left unchanged, whether changes affect in-flight instances, what permissions are needed, or whether the operation is reversible. For a mutation tool on a scaling lifecycle hook this is a meaningful gap.

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?

A single front-loaded sentence with no filler or repetition, and the resource being modified appears immediately. It is efficient, though the brevity is also the source of the missing guidance rather than a virtue in itself.

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 an eight-parameter mutation tool with no annotations and no output schema, one sentence is not enough. An agent cannot tell which fields are patchable versus replaced, what the effect on attached instances is, or what a successful response contains.

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 eight parameters (including default_result, default_timeout, notification_topic_urn, and lifecycle_hook_type) are already documented in the schema with enums and ranges. The description adds no parameter meaning of its own, so the baseline of 3 applies.

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 states a specific verb and resource ('修改一个指定生命周期挂钩中的信息' – modify information in a specified lifecycle hook), which tells an agent exactly what the tool operates on. It stops short of differentiating itself from siblings such as CreateLifyCycleHook or DeleteLifecycleHook, relying on the name alone for that distinction.

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 guidance on when to use this tool rather than Create/Show/Delete lifecycle hook operations, no prerequisites, and no note on what happens to a hook that is currently attached to instances. The agent must infer the usage context entirely from the name.

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