Skip to main content
Glama

ces__CreateAlarm

Create a Huawei Cloud CES alarm rule to monitor metrics and trigger notifications or autoscaling actions when defined thresholds are met.

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_name": "<alarm_name>",
      "condition": "<condition>",
      "metric": "<metric>",
      "project_id": "<project_id>"
    },
    "name": "ces__CreateAlarm"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricYes创建规则中的监控指标信息
conditionYes告警规则设置的告警策略
alarm_nameYes告警名称,只能包含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_enabledNo是否启用该条告警,默认为true。
alarm_descriptionNo告警描述,长度0-256。
alarm_action_enabledNo是否启用该条告警触发的动作,默认为true。注:若alarm_action_enabled为true,对应的alarm_actions、ok_actions至少有一个不能为空。若alarm_actions、ok_actions同时存在时,notificationList值保持一致。
enterprise_project_idNo企业项目ID。默认值为0,表示默认的企业项目default。说明:此参数在“华东-上海一”区域上线。
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 burden of behavioral disclosure and provides none. It says nothing about required permissions, what is returned, whether created rules are immediately active, or how alarm_actions/ok_actions notification wiring behaves — all essential for a 13-parameter mutation.

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?

The single sentence is efficient and front-loaded, with no wasted words. However, the brevity reflects under-specification rather than disciplined concision, given the tool's complexity.

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, nested objects, one enum, and no output schema, a one-line description is thin. The rich input schema compensates for parameter-level gaps, but nothing explains return values, side effects, or the alarm_type-driven branching that governs whether dimensions or resource_group_id are required.

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% and the schema itself is extremely detailed (enums, ranges, formats, conditional requirements for metric.dimensions and resource_group_id). The description adds no parameter meaning beyond that, so the baseline 3 for full schema coverage applies.

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 specific verb and resource ('创建一条告警规则' / create an alarm rule), so the basic action is unambiguous. It does not differentiate from close siblings such as ces__CreateAlarmRules or ces__CreateOneClickAlarm, leaving the agent to guess which creation endpoint is appropriate.

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 guidance, no prerequisites, and no mention of alternatives. The agent must infer from the name alone that this is the single-rule creation path versus the batch or one-click variants.

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