Skip to main content
Glama

ces__ListAlarmTemplates

Query Huawei Cloud CES alarm templates by project, namespace, product, name, or type, with pagination, to retrieve matching templates for monitoring configuration.

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

Input Schema

NameRequiredDescriptionDefault
limitNo查询结果条数的限制值,取值范围为[1,100],默认值为100
offsetNo分页查询时查询的起始位置,表示从第几条数据开始,默认为0
dim_nameNo资源维度,必须以字母开头,多维度用","分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32
namespaceNo查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
project_idYes租户ID
product_nameNo支持按照产品名称粒度进行查询告警模板,产品名称一般由"服务命名空间,服务首层维度名称"组成,如"SYS.ECS,instance_id"
template_nameNo告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128],支持模糊匹配
template_typeNo模板类型(system代表默认指标模板,custom代表自定义指标模板,system_event代表默认事件模板,custom_event代表自定义事件模板,system_custom_event代表全部事件模板),不传返回全部指标模板

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 carries the full behavioral burden, yet it says nothing about being a read-only, non-mutating listing, about default result size, or that unspecified template_type returns all metric templates. The only behavioral hints (limit/offset semantics, enum defaults) live in the schema, not the description.

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?

It is a single short sentence with zero waste, which is good, but it is under-specified rather than concise, and the bracketed service tag adds no informational value.

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 8 parameters, no annotations, and no output schema, the description should at minimum convey that this is a paginated read-only listing of alarm templates and what the filter dimensions do. As written, it conveys only the tool's name-level intent.

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% — every one of the 8 parameters carries a detailed description including ranges, patterns, and enum meanings. The description adds no meaning beyond that, so the 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?

"查询告警模板列表" states a specific verb (query/list) and resource (alarm templates), which is clearly distinct from mutations like CreateAlarmTemplate or DeleteAlarmTemplate. However, it offers no differentiation from read-side siblings such as ces__ShowAlarmTemplate or ces__ListAlarmTemplateAssociationAlarms, and the "[CES]" prefix is pure noise.

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 guidance on when to use this tool versus ShowAlarmTemplate (single template) or ListAlarmTemplateAssociationAlarms, nor any note on prerequisites such as project_id scoping. The agent must infer the context from the name alone.

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