Skip to main content
Glama

ces__ListResourceGroupsServicesResources

Lists resources in a CES resource group for a specified service and dimension, with filters for health, tags, names, and pagination. Use it to inspect monitored resources and alarm states.

Instructions

[CES] 查询资源分组下指定服务类别特定维度的资源列表

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": {
      "group_id": "<group_id>",
      "project_id": "<project_id>",
      "service": "<service>"
    },
    "name": "ces__ListResourceGroupsServicesResources"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo资源的标签信息,格式:"[key]":"[value]",样例参考:"ssss":"1111"
limitNo分页查询时每页的条目数,取值[1,100],默认值为100
offsetNo分页查询时查询的起始位置,表示从第几条数据开始,默认为0
statusNo按状态信息进行过滤,取值只能为health(已设置告警规则且无告警触发的资源)、unhealthy(已设置告警规则且有告警触发的资源)、no_alarm_rule(未设置告警规则的资源)
serviceYes服务类别,如SYS.ECS
dim_nameNo资源维度信息,多个维度按字母序使用逗号分割
group_idYes资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
dim_valueNo资源维度值,不支持模糊匹配,但是多维度资源可以只指定一个维度值
project_idYes租户ID
event_statusNo按事件告警状态信息进行过滤,取值只能为health(已设置事件告警规则且无事件告警触发的资源)、unhealthy(已设置事件告警规则且有事件告警触发的资源)、no_alarm_rule(未设置事件告警规则的资源)
product_nameNo资源分组的云产品,一般由"服务命名空间,服务首层维度名称"组成,如"SYS.ECS,instance_id"
resource_nameNo资源名称
extend_relation_idNo企业项目ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden of behavioral disclosure. The verb implies a read-only list operation, but the description says nothing about pagination defaults, result ordering, empty-result behavior, required permissions, or rate limits. For a 13-parameter query tool with no annotation coverage, this is a substantial gap.

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?

A single short sentence with no filler and the scope front-loaded, which is structurally clean. However, at one sentence for a 13-parameter tool it is under-sized rather than well-sized; brevity here costs more than it saves.

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?

With 13 parameters, 2 enums, no output schema, and no annotations, the definition needs more context than one clause provides. It never explains the optional filter dimensions (status vs event_status, tag, product_name) or what the returned resource entries contain, so an agent must reconstruct behavior from the schema alone.

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 parameter (group_id, service, dim_name, dim_value, status, event_status, tag, limit, offset, etc.) already carries its own meaning and constraints in the schema. The description adds no extra semantics such as how dim_name and dim_value interact in multi-dimension queries. Baseline 3 is appropriate when the schema does all the heavy lifting.

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 gives a specific verb and resource ('查询...资源列表' / query resource list) plus the scoping context: within a resource group, for a specified service category and specific dimension. That distinguishes it from sibling ces__ListResourceGroups, which lists the groups themselves rather than their member resources. It stops short of explicitly naming an alternative, so not a 5.

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, no mention of alternatives, and no prerequisites (e.g. that the group must already exist, or how this differs from ListAlarmRuleResources / ListResourceGroups). Only the implicit 'you must supply a group, service, and dimension' is conveyed by the scope wording.

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