Skip to main content
Glama

ces__CreateAlarmTemplate

Creates a custom Huawei Cloud CES alarm template with metric or event policies for a project, optionally overwriting an existing template with the same name.

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": {
      "policies": "<policies>",
      "project_id": "<project_id>",
      "template_name": "<template_name>"
    },
    "name": "ces__CreateAlarmTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
policiesYes告警模板策略列表
project_idYes租户ID
is_overwriteNo是否对模板名称已经存在的告警模板进行覆盖。true:覆盖同名告警模板;false:不覆盖,新建告警模板。
template_nameYes告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
template_typeNo自定义告警模板类型 0:指标 2: 事件
template_descriptionNo告警模板的描述,长度范围[0,256],该字段默认值为空字符串

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?

With no annotations, the description carries the full behavioral burden, but it discloses nothing beyond the act of creation. It does not say that a same-named template can be overwritten, that behavior is controlled by is_overwrite, what permissions the tenant project needs, or what happens on name conflicts; those details appear only in the schema.

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 a [CES] tag, so there is no wasted wording, but the brevity reflects under-specification rather than efficient communication. It is front-loaded only in the trivial sense that there is nothing else.

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?

This is a complex mutation tool: six parameters, one of them a list of up to 1000 nested policy objects with eight-plus sub-fields, and the name and description alone give no guidance on creating templates correctly. With no output schema and no annotations, the definition leaves most of the operational context missing.

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 nested policy fields, enums, and patterns are thoroughly documented in the schema itself. The description adds no parameter meaning beyond that, so the baseline of 3 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?

It states a verb and resource ("创建自定义告警模板" = create custom alarm template), but that mostly restates the tool name CreateAlarmTemplate and adds only "custom". It gives no way to tell it apart from siblings such as ces__CreateAlarm, ces__CreateAlarmRules, or ces__CreateOneClickAlarm, which also create alarm-related objects.

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?

The description contains no when-to-use guidance: no prerequisites, no mention of when a template is preferable to creating alarm rules directly, and no exclusions. An agent must infer the choice purely from sibling names.

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