Skip to main content
Glama

as__AttachCallbackInstanceLifeCycleHook

Call back a hanging Auto Scaling instance lifecycle hook to continue, abandon, or extend its timeout by one hour using a lifecycle action token or instance ID and hook name.

Instructions

[AS] 通过生命周期操作令牌或者通过实例ID和生命周期挂钩名称对伸缩实例指定的挂钩进行回调操作。如果在超时时间结束前已完成自定义操作,选择终止或继续完成生命周期操作。如果需要更多时间完成自定义操作,选择延长超时时间,实例保持等待状态的时间将增加1小时。只有实例的生命周期挂钩状态为 HANGING 时才可以进行回调操作。

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_action_result": "<lifecycle_action_result>",
      "project_id": "<project_id>",
      "scaling_group_id": "<scaling_group_id>"
    },
    "name": "as__AttachCallbackInstanceLifeCycleHook"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
instance_idNo实例ID。指定生命周期回调对象,当不传入lifecycle_action_key字段时,该字段为必选。
scaling_group_idYes伸缩组标识。
lifecycle_hook_nameNo生命周期挂钩名称。指定生命周期回调对象,当不传入lifecycle_action_key字段时,该字段为必选。
lifecycle_action_keyNo生命周期操作令牌,通过查询伸缩实例挂起信息接口获取。指定生命周期回调对象,当不传入instance_id字段时,该字段为必选。当该字段与instance_id字段都传入,优先使用该字段进行回调。
lifecycle_action_resultYes生命周期回调操作。ABANDON:终止。CONTINUE:继续。EXTEND:延长超时时间,每次延长1小时。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose key traits: the HANGING-state precondition and the fact that EXTEND adds one hour to the instance's wait time per invocation. It does not clarify the exact downstream effect of ABANDON (instance termination vs. merely ending the wait) or whether the call is idempotent.

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 sentence, followed by outcome semantics, with the HANGING precondition closing it out. Every sentence is functional, though the EXTEND detail is stated once rather than folded into a tighter list.

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 six-parameter mutation tool with no annotations and no output schema, the description covers purpose, precondition, and the meaning of each action, which is what an agent needs to invoke it correctly. Return-value shape is unspecified, but the schema is fully documented and the missing piece is minor.

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 six parameters, including the ABANDON/CONTINUE/EXTEND enum, are already documented in the schema. The description restates that selection is by token or by instance ID plus hook name without adding syntax or precedence detail beyond what the schema already says, so baseline 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: call back a lifecycle-hook-held scaling instance, and it names the two identification paths (lifecycle action token, or instance ID plus hook name). It is clearly distinguishable from ShowLifeCycleHook or ListHookInstances, though it does not explicitly compare itself 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?

It gives a hard precondition — the hook state must be HANGING — and explains how the three outcomes apply (decide terminate/continue if the custom action finished, extend if more time is needed). The only gap is that it does not explicitly route the agent to the query API for obtaining the token or for checking HANGING state before calling.

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