Skip to main content
Glama

as__ListResourceInstances

Query Auto Scaling resource instances by project ID and resource type, filtering by tags and returning paginated results or total counts.

Instructions

[AS] 根据项目ID查询指定资源类型的资源实例。资源、资源tag默认按照创建时间倒序。

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": {
      "action": "<action>",
      "project_id": "<project_id>",
      "resource_type": "<resource_type>"
    },
    "name": "as__ListResourceInstances"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo过滤条件,包含标签,最多包含10个Tag,结构体不能缺失。
limitNo查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。
actionYes操作标识(仅限filter,count):filter(过滤):即分页查询。count(查询总条数):按照条件将总条数返回即可。
markerNo分页位置标识(资源ID或索引位置)。
offsetNo(索引位置),从offset指定的下一条数据开始查询。查询第一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时,不需要传入此参数。查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。必须为数字,不能为负数。action:count时,无此参数。action:filter时,默认为0
matchesNo模糊搜索字段。
not_tagsNo过滤条件,不包含标签,最多包含10个Tag。
tags_anyNo过滤条件,包含任意标签,最多包含10个Tag。
project_idYes项目ID。
not_tags_anyNo过滤条件,不包含任意标签,最多包含10个Tag。
resource_typeYes资源类型,枚举类:SCALING_GROUP_TAG。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/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. It does contribute one genuine behavioral fact beyond the schema — results and tags are returned in descending creation-time order by default — and frames the call as a query, but it says nothing about permission requirements, pagination behavior across pages, or the differing response shape between filter and count.

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

Conciseness5/5

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

Two short sentences with zero padding, and the identity of the tool (project ID + resource type) is front-loaded before the ordering caveat. Every sentence earns its place.

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 an 11-parameter tool with four parallel tag-filter families, an offset/marker pagination scheme, and a filter-vs-count mode switch, the description is thin — it explains the entry point but not the filter semantics or the pagination strategy. There is no output schema, so the absence of any hint about what comes back in count mode is a real gap.

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 every one of the 11 parameters (tags, not_tags, tags_any, not_tags_any, matches, marker, offset, limit, action) already carries a documented meaning. The description only echoes project_id and resource_type and adds nothing about how the tag filter families combine, which is the main semantic risk here; 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+resource: query resource instances for a given resource type by project ID (根据项目ID查询指定资源类型的资源实例). That is enough to separate it from the scaling-group and activity-log siblings, but it never names an alternative or clarifies how it differs from other List*Instances tools, so it falls short of the 5 bar.

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 when-to-use or when-not-to-use guidance. Critically, the required `action` parameter switches between paginated filtering and a total count, yet the description gives no indication of which mode to pick or how the caller should choose, leaving the key usage decision entirely to the schema.

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