Skip to main content
Glama

ces__UpdateAlarmRulePolicies

Replaces all alarm rule policies for a specified alarm to update thresholds, comparison operators, trigger counts, and suppression settings in Huawei Cloud CES.

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_id": "<alarm_id>",
      "policies": "<policies>",
      "project_id": "<project_id>"
    },
    "name": "ces__UpdateAlarmRulePolicies"
  }
}

Input Schema

NameRequiredDescriptionDefault
alarm_idYesAlarm实例ID
policiesYes策略信息
project_idYes租户ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. It does disclose the most important trait — full replacement of the policy list, which means existing policies not included in the request are overwritten — but says nothing about permissions, whether the alarm must exist or be disabled, or the effect on an in-flight alarm state.

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 bracketed prefix plus a five-character purpose phrase — front-loaded and free of waste. It is arguably too sparse rather than too verbose, but as pure structure there is nothing to trim.

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 mutating tool over a nested policies array (up to 50 policy objects with many interdependent fields), with no annotations and no output schema. A one-phrase description does not cover the destructive replacement consequence, failure modes, or return behavior that an agent needs for a call of this complexity.

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_id, policies, and project_id are all documented in the schema with patterns and field-level detail. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the heavy lifting.

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 (modify) and resource (alarm rule policies), and the "(全量修改)" qualifier signals this is a full replace rather than a partial edit. That distinguishes it from ces__ListAlarmRulePolicies and from the narrower ces__UpdateAlarm* siblings, though the distinction is only implied by the parenthetical rather than stated explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The "全量修改" note implies usage context (use this to replace the entire policy set, versus other update tools that touch alarms, actions, or notifications), but the description never states when to prefer this over alternatives or what prerequisites must hold. Guidance is inferable from the name and parenthetical, not stated.

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