Skip to main content
Glama

as__ListHookInstances

Retrieves suspended instance information for an Auto Scaling group after lifecycle hooks, optionally filtered by instance ID, to identify instances waiting in hook state.

Instructions

[AS] 添加生命周期挂钩后,当伸缩组进行伸缩活动时,实例将被挂钩挂起并置于等待状态,根据输入条件过滤查询弹性伸缩组中伸缩实例的挂起信息。可根据实例ID进行条件过滤查询。若不加过滤条件默认查询指定伸缩组内所有实例挂起信息。

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID。
instance_idNo伸缩实例ID。
scaling_group_idYes伸缩组ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It does explain the domain meaning of the results (instances held in a waiting state by a lifecycle hook) and the default all-records behavior, but says nothing about permissions, result volume, pagination, or the shape of the returned records for a read-only list call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything sits in one long sentence that leads with lifecycle-hook background before reaching the actual query action, so the operative instruction is not front-loaded. The domain preamble earns partial credit as context but could be trimmed.

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?

With no output schema and no annotations, the description is the only source of behavioral context; it covers what the query targets and its filtering default but omits return-value characteristics and pagination. Adequate for a simple read tool, but not complete.

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 the baseline is 3, but the description adds value beyond the schema by disclosing the default behavior when instance_id is omitted (all suspension info in the specified scaling group). It adds no format or pattern detail, which the schema already supplies.

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 names a specific action (过滤查询) and resource (弹性伸缩组中伸缩实例的挂起信息) and explains that this is hook-induced suspension state after lifecycle hooks are added. An agent can tell it queries pending/suspended instances, though it never contrasts itself with siblings such as ListScalingInstances or ListLifeCycleHooks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the operative condition – optionally filter by instance ID, otherwise return all suspension records for the given scaling group – which implicitly tells the agent when the tool applies. There is no explicit when-not guidance and no routing to any alternative sibling tool for plain instance listing.

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