Skip to main content
Glama

ces__BatchUpdateOneClickAlarmsEnabledState

Enable or disable multiple alarm rules linked to a one-click alarm in Huawei Cloud CES, allowing batch control of alarm rule states by project and alarm IDs.

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>",
      "one_click_alarm_id": "<one_click_alarm_id>",
      "project_id": "<project_id>"
    },
    "name": "ces__BatchUpdateOneClickAlarmsEnabledState"
  }
}

Input Schema

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

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?

With no annotations supplied, the description carries the full behavioral burden, yet it only restates that enabled state changes. It does not disclose that disabling rules suppresses alerting (an impactful mutation), whether the operation is atomic or partial on failure, what permissions are required, or what the response contains.

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?

A single compact sentence with the action and target front-loaded; nothing is wasted. The "[CES]" prefix is minor noise but does not impede parsing.

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 four-required-parameter batch mutation with nested objects and no annotations or output schema, so the description should explain effects and failure behavior. Instead it stops at the one-line purpose, leaving the agent without enough to judge impact or interpret results.

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 four parameters including the nested alarm_ids pattern and the 100-item cap are already documented in the schema. The description only confirms that "启用状态" maps to alarm_enabled and adds no format, ordering, or batching semantics beyond that.

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?

"批量修改一键告警关联告警规则的启用状态" names a specific verb (批量修改) and a specific resource (一键告警关联告警规则的启用状态), so an agent knows it toggles enablement on alarm rules under a one-click alarm. It does not explicitly contrast with the close sibling ces__BatchUpdateOneClickAlarmPoliciesEnabledState, which targets policies rather than alarm rules, leaving that distinction to be inferred from the noun.

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 prerequisites, and no mention of alternatives such as the policy-level or batch-enable siblings. The agent must infer from the name alone that this is for bulk toggling alarm-rule state under a one-click alarm.

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