Skip to main content
Glama

ces__CreateAlarmRules

Creates Huawei Cloud CES alarm rules to monitor resources, events, and metrics, set thresholds and notification actions, and control when alerts are triggered.

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": {
      "enabled": "<enabled>",
      "name": "<name>",
      "namespace": "<namespace>",
      "notification_enabled": "<notification_enabled>",
      "project_id": "<project_id>",
      "resources": "<resources>",
      "type": "<type>"
    },
    "name": "ces__CreateAlarmRules"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128
tagsNo租户标签列表
typeYes告警规则类型,ALL_INSTANCE为全部资源指标告警,RESOURCE_GROUP为资源分组指标告警,MULTI_INSTANCE为指定资源指标告警,EVENT.SYS为系统事件告警,EVENT.CUSTOM自定义事件告警,DNSHealthCheck为健康检查告警;
enabledYes是否开启告警规则。true:开启,false:关闭。
policiesNo告警策略,当alarm_template_id字段为空时必填,不为空时不填
namespaceYes查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
resourcesYes资源列表,告警规则类型为全部资源、资源分组时,资源维度值传空;告警规则类型为指定资源时,资源维度值必填,可以同时指定监控多个资源。
project_idYes租户ID
descriptionNo告警描述,长度0-256
product_nameNo产品层级跨纬规则创建时需要指明的规则产品名称,一般由"服务命名空间,服务首层维度名称"组成,如"SYS.ECS,instance_id"
resource_levelNo产品层级跨纬规则创建时需要指明为产品层级规则,resource_level取值为product即为产品层级跨纬规则,不填或者取值为dimension则为旧的规则类型
ok_notificationsNo告警恢复触发的动作
alarm_template_idNo告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化
resource_group_idNo资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
alarm_notificationsNo告警触发的动作
notification_enabledYes是否开启告警通知。true:开启,false:关闭。
enterprise_project_idNo企业项目ID
notification_end_timeNo告警通知关闭时间
notification_begin_timeNo告警通知开启时间

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 and delivers almost none. It does not say that this creates persistent server-side state, what permissions or notification configuration (SMN topics, notification_enabled) are required, or that template linking (alarm_template_id) changes policy behavior. Only the word 'create' hints at a 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?

There is no wasted wording, but only because there is almost no content. For a tool with 7 required parameters and deeply nested objects, a one-phrase description is under-specified rather than appropriately concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 19 parameters, 7 required fields, nested resource/policy/notification objects, no output schema, and no annotations, the description leaves an agent with essentially nothing beyond the name. It is wholly inadequate for the complexity of this create operation.

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 each of the 19 parameters is already documented in the schema, and the baseline of 3 applies. The description contributes nothing beyond the schema — notably it does not explain the interplay between the 'type' enum, 'resources', 'policies', and 'alarm_template_id', which is the hardest part of using this tool.

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 "[CES] 创建告警规则" names a specific verb (create) and resource (alarm rule), so the basic operation is clear. However, it is essentially a translation of the tool name, adds no scope detail, and gives no basis for distinguishing it from siblings such as ces__CreateAlarm, ces__CreateOneClickAlarm, or ces__CreateAlarmTemplate.

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 mention of prerequisites (project, namespace, resource dimensions), and no routing to alternatives like CreateOneClickAlarm or CreateAlarmTemplate. The agent must infer everything from the tool name and schema.

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