Skip to main content
Glama

ces__ListMetrics

Retrieves currently monitorable system metrics with filters for namespace, metric name, dimensions, sort order, and pagination to support targeted observability queries.

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": {
      "project_id": "<project_id>"
    },
    "name": "ces__ListMetrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
dim.0No指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
dim.1No指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
dim.2No指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
limitNo取值范围(0,1000],默认值为1000。 用于限制结果数据条数。
orderNo用于标识结果排序方法。 取值说明,默认为desc: asc,升序 desc,降序
startNo分页起始值,格式为:namespace.metric_name.key:value 例如:start=SYS.ECS.cpu_util.instance_id:d9112af5-6913-4f3b-bd0a-3f96711e004d
namespaceNo指标命名空间,格式为service.item;service和item必须是字符串,必须以字母开头,只能包含0-9/a-z/A-Z/_,总长度最短为3,最大为32;各服务的命名空间可查看:“[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
project_idYes项目编号。
metric_nameNo指标名称,例如弹性云服务器监控指标中的cpu_util;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/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 behavioral burden. It conveys a read-only lookup whose scope is 'currently monitorable' metrics, but says nothing about whether project_id determines visibility, how start and limit interact for paging, or whether results include metrics with no recent data points.

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 sentence that front-loads the purpose and then lists the filter facets, with no filler. It is efficient, though the comma-separated filter run-on is slightly harder to scan than structured phrasing.

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 a 9-parameter list tool with no annotations and no output schema, the description establishes purpose and filter scope but omits how paging is meant to be driven and what the returned records contain. That is adequate but leaves genuine gaps.

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 coverage is 100%, so every one of the 9 parameters is documented in the schema, and that alone sets the baseline at 3. The description merely restates the same filter list without adding syntax, defaults, or constraints beyond the schema.

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 verb 查询 (query/list) and the resource 系统当前可监控指标列表 (currently monitorable metric definitions) are stated specifically, and the [CES] prefix scopes it to the service. It implicitly separates itself from data-retrieval siblings like ces__BatchListMetricData, but never names an alternative, so it stops short of 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?

The description enumerates the filters (namespace, metric_name, dim, order, start, limit) but never says when to call this versus another tool or when not to. There is no mention of the common prerequisite pattern, i.e. discovering metric names and dimensions before querying metric data.

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