Skip to main content
Glama

ces__BatchEnableAlarmRules

Batch enable or disable Huawei Cloud CES alarm rules by submitting alarm rule IDs and an alarm_enabled flag, so you can manage alerting state across multiple rules in one request.

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_enabled": "<alarm_enabled>",
      "alarm_ids": "<alarm_ids>",
      "project_id": "<project_id>"
    },
    "name": "ces__BatchEnableAlarmRules"
  }
}

Input Schema

NameRequiredDescriptionDefault
alarm_idsYes需要批量启停的告警规则的ID列表
project_idYes租户ID
alarm_enabledYes是否开启告警规则。true:开启,false:关闭。

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 supplied, the description carries the full burden of behavioral disclosure and does almost none of it: it does not state side effects, idempotency, whether the change is reversible, or how partial failures are handled when some of up to 100 IDs are invalid. For a bulk mutation these omissions matter a great deal.

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 nothing wasted, which is structurally clean, but the brevity reflects under-specification rather than disciplined editing. There is no front-loaded detail an agent could act on beyond the tool name.

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 batch mutation with three required parameters, no annotations and no output schema, the description does not indicate what the caller gets back on success or how failures surface. It is not complete enough for an agent to call this confidently in a production workflow.

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 alarm_ids, project_id and alarm_enabled are already fully documented with format constraints, tenant scope and true/false semantics. The description adds no meaning beyond the schema, so the baseline 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?

The description identifies a verb (batch enable/disable) and resource (alarm rules), and '启停' usefully signals that both enabling and disabling are covered, which the name alone does not make explicit. However, it never distinguishes this from near-identical siblings such as ces__BatchDeleteAlarmRules or ces__UpdateAlarmRulePolicies, so an agent must infer the boundary.

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 guidance on when to use this instead of the single-rule update tools or the delete variant, and no stated prerequisites such as required permissions or whether the rules must already exist. The only hint of context is the '批量' (batch) framing, which is already implied by the name.

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