Skip to main content
Glama

ces__CreateOneClickAlarm

Creates a Huawei Cloud CES one-click alarm that configures metric and event dimensions, notification settings, and optional alarm policies to monitor resources and trigger 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": {
      "dimension_names": "<dimension_names>",
      "notification_enabled": "<notification_enabled>",
      "one_click_alarm_id": "<one_click_alarm_id>",
      "project_id": "<project_id>"
    },
    "name": "ces__CreateOneClickAlarm"
  }
}

Input Schema

NameRequiredDescriptionDefault
is_resetNo是否以默认一键告警规则重置创建
project_idYes租户ID
dimension_namesYes启用一键告警关联告警规则的维度列表,包括指标告警&事件告警,且至少开启一个
ok_notificationsNo告警恢复触发的动作
one_click_alarm_idYes一键告警ID
alarm_notificationsNo告警触发的动作
notification_mannerNoNOTIFICATION_GROUP(通知组)/TOPIC_SUBSCRIPTION(主题订阅)/NOTIFICATION_POLICY(通知策略)
notification_enabledYes是否开启告警通知。true:开启,false:关闭。
notification_end_timeNo告警通知关闭时间
notification_begin_timeNo告警通知开启时间
notification_policy_idsNo关联的通知策略ID列表
one_click_update_alarmsNo打开一键告警需要同时修改告警策略及通知(当前仅支持通知策略修改)时传递的参数

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 behavioral burden, yet it discloses nothing beyond the bare act of creation. It does not explain what gets created alongside the alarm (rules, notifications), what is_reset does to existing configuration, whether the call is idempotent, or what side effects/permissions are required — significant gaps for a 12-parameter nested 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 description is a single short phrase with no padding, so nothing is wasted, but it is under-specified rather than concise and offers no structure an agent can act on. Brevity here comes at the cost of all substantive information.

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?

For a mutation tool with 12 parameters, deeply nested objects, no annotations, and no output schema, a one-line restatement of the name is wholly inadequate. Nothing tells the agent how the required dimension_names, notification_enabled, and one_click_alarm_id combine, or what the call returns.

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 12 parameters, including the deeply nested dimension_names, ok_notifications, alarm_notifications, and one_click_update_alarms structures, are documented in the schema itself. The description adds no meaning beyond that, which meets the baseline for full schema coverage.

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 phrase "创建一键告警" names a concrete verb (create) and resource (one-click alarm) under the CES service, so the basic operation is identifiable. However, it is essentially a restatement of the tool name CreateOneClickAlarm and gives no differentiation from closely related siblings such as ces__CreateAlarm or ces__CreateAlarmRules, leaving the agent to infer which creation entry point applies.

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 at all: no statement of prerequisites (tenant/project scope, whether the one-click alarm template already exists), no indication of when to prefer this over ces__CreateAlarm, and no mention of follow-up tools. The agent must infer usage entirely from the 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