Skip to main content
Glama

ces__BatchDeleteAlarmTemplates

Batch delete custom alarm templates in Huawei Cloud CES by ID list, with optional cascading removal of associated alarm rules. Use it to clean up multiple templates at once.

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": {
      "delete_associate_alarm": "<delete_associate_alarm>",
      "project_id": "<project_id>",
      "template_ids": "<template_ids>"
    },
    "name": "ces__BatchDeleteAlarmTemplates"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes租户ID
template_idsYes需要批量删除的告警模板的ID列表。未关联告警规则的模板可以批量删除多个;已关联告警规则的告警模板,单次只允许删除一个,若同时删除多个已关联告警规则的告警模板,将返回异常
delete_associate_alarmYes如果告警模板关联了告警规则,是否级联删除告警规则,true代表级联删除,false代表只删除告警模板

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it discloses nothing. It does not mention that the operation is destructive or irreversible, that it cascades and deletes alarm rules when delete_associate_alarm=true, or what failure mode occurs when templates already associated with alarm rules are deleted in a batch. The scope and safety constraints are only in the parameter descriptions, not in the tool description.

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

Conciseness4/5

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

The description is a single front-loaded clause with no wasted words, and the operation and target resource both appear immediately. It is concise to the point of being a restated name plus a batch qualifier rather than an explanatory description, but there is no padding or muddled structure.

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?

For a destructive bulk operation with a cascade-delete switch and an unusual rule that templates already associated with alarm rules can be deleted only one at a time, a one-phrase description is not enough. There is no output schema and no annotations, so the description should at least carry the cascade risk and the irreversibility; it carries neither.

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%: project_id, template_ids, the 100-item cap, the at-prefix pattern, and the cascade flag are all documented in the schema itself. The description adds no meaning beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 in '批量删除自定义告警模板' (batch delete custom alarm templates), and the word 批量 distinguishes it from the single-item sibling ces__DeleteAlarmTemplate. Because the scope is different, an agent can tell this tool apart from the sibling without opening either schema, though the description never names the alternative explicitly.

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 consists of one noun phrase and gives no guidance about when to use it, no prerequisites, and no exclusions. It also does not say that when a template is associated with alarm rules, only one can be deleted at a time, or that deleting such templates in a batch causes an exception. That caveat exists only in the 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