Skip to main content
Glama

ces__ListAlarmHistories

Query Huawei Cloud CES alarm history records by project, time range, level, status, or alarm ID to review past alerts and support incident analysis.

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

Input Schema

NameRequiredDescriptionDefault
toNo查询告警记录的截止更新时间,例如:2022-02-10T10:05:47+08:00
fromNo查询告警记录的起始更新时间,例如:2022-02-10T10:05:46+08:00
nameNo告警规则名称
levelNo告警级别, 1为紧急,2为重要,3为次要,4为提示
limitNo分页大小
offsetNo分页偏移量
statusNo告警规则状态, ok为正常,alarm为告警,invalid为已失效
alarm_idNo告警ID,以al开头,后跟22位由字母或数字组成的字符串
order_byNo按关键字排序, 默认为update_time, {first_alarm_time: 告警产生时间, update_time: 更新时间, alarm_level: 告警级别, record_id:表记录主键}
namespaceNo查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
record_idNo告警记录ID,以ah开头,后跟22位由字母或数字组成的字符串
alarm_typeNo告警类型,event:查询事件类型告警,metric:查询指标类型告警
project_idYes租户ID
resource_idNo告警资源ID,多维度情况按字母升序排列并使用逗号分隔
create_time_toNo查询告警记录的截止创建时间,例如:2022-02-10T10:05:47+08:00
create_time_fromNo查询告警记录的起始创建时间,例如:2022-02-10T10:05:46+08:00

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 burden of behavioral disclosure. "查询" implies a read operation, but nothing is said about pagination behavior, sort defaults, maximum result sizes, or whether the caller needs specific permissions.

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 phrase with no wasted words, but it is under-specified rather than efficient. There is no structure such as a brief note on what is returned or how filters combine.

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?

For a 16-parameter list tool with no annotations and no output schema, the description is far too thin. The agent must infer from the schema alone how time-range filters, ordering, and pagination interact, and what shape the returned records take.

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 all 16 parameters (time ranges, level, status, alarm_id, order_by, etc.) are already documented in the schema. The description adds no meaning beyond that, which is the baseline case when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb and resource ("查询告警记录列表" – query the alarm record list), so the agent knows it retrieves alarm history records. However, it does not differentiate this from sibling tools such as ces__ListAlarmRules or ces__ShowAlarm, and it largely restates the tool name ListAlarmHistories.

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 indication of when to use this tool rather than alternatives, nor any stated preconditions. With multiple sibling alarm-listing and alarm-detail tools available, the agent gets no routing signal at all beyond the tool name.

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