Skip to main content
Glama

ces__UpdateAlarm

Update a Huawei Cloud CES alarm rule's condition, level, actions, or notifications by alarm ID and project to adjust monitoring alerts.

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

Input Schema

NameRequiredDescriptionDefault
alarm_idYes告警规则的ID。al15454523384878yogJg6ao
conditionNo告警规则设置的告警策略
alarm_nameNo告警名称,只能包含0-9/a-z/A-Z/_/-或汉字。
alarm_typeNo告警类型,支持的枚举类型:EVENT.SYS:针对系统事件的告警规则;EVENT.CUSTOM:针对自定义事件的告警规则;RESOURCE_GROUP:针对资源分组的告警规则。
ok_actionsNo告警恢复触发的动作
project_idYes项目编号。
alarm_levelNo告警级别,默认为2,级别为1、2、3、4。分别对应紧急、重要、次要、提示。
alarm_actionsNo告警触发的动作。 结构样例如下: { "type": "notification","notificationList": ["urn:smn:southchina:68438a86d98e427e907e0097b7e35d47:sd"] } type取值: notification:通知。 autoscaling:弹性伸缩。
alarm_descriptionNo告警描述,长度0-256。
alarm_action_enabledNo是否启用该条告警触发的动作,默认为true。注:若alarm_action_enabled为true,对应的alarm_actions、ok_actions至少有一个不能为空。若alarm_actions、ok_actions同时存在时,notificationList值保持一致。
insufficientdata_actionsNo数据不足触发的动作(该参数已废弃,建议无需配置)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior1/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, and it discloses nothing. For an 11-parameter mutation of an alarm rule, it does not say whether omitted fields are preserved or cleared, what permissions are required, or whether changes are reversible or take effect immediately.

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

Conciseness2/5

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

The single short sentence contains no wasted words, but this reflects under-specification rather than good structure. Nothing is front-loaded because there is nothing beyond a restated name.

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 tool with 11 parameters, nested objects, no annotations, and no output schema, a one-line description is far from complete on behavior, update semantics, and side effects. The rich input schema partially compensates, but the agent is left to infer the core mechanics of the mutation.

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%, with detailed Chinese descriptions for every field including nested condition and action objects, so the schema does the heavy lifting. The description contributes no additional parameter meaning beyond what is already documented.

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 names a verb and resource ("修改告警规则"), so the agent knows this mutates an alarm rule. However, it adds essentially nothing beyond the tool name UpdateAlarm and does not distinguish this whole-rule update from the many sibling update tools such as UpdateAlarmAction, UpdateAlarmNotifications, or UpdateAlarmRulePolicies.

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?

No guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. The agent must infer from the name alone whether this is the right tool for changing notification settings versus condition thresholds.

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