Skip to main content
Glama

aom__AddOrUpdateMetricOrEventAlarmRule

Create or update Huawei Cloud AOM metric or event alarm rules with specified triggers, thresholds, and notifications to automate monitoring alerts for a project.

Instructions

[AOM] 添加或修改AOM2.0指标类或事件类告警规则。(注:接口目前开放的region为:华东-上海一)

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": {
      "action_id": "<action_id>",
      "alarm_rule_name": "<alarm_rule_name>",
      "alarm_rule_type": "<alarm_rule_type>",
      "project_id": "<project_id>"
    },
    "name": "aom__AddOrUpdateMetricOrEventAlarmRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNo告警规则别名。最多可输入256个字符,只能包含中文、字母、数字、特殊字符(_-【】),开头、结尾不允许输入中划线、下划线。
action_idYes告警规则id。
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
alarm_rule_nameYes告警规则名称。
alarm_rule_typeYes告警规则类型。
event_alarm_specNo事件类告警结构。
prom_instance_idNoPrometheus实例id。
alarm_rule_enableNo是否启用。
metric_alarm_specNo指标类告警结构。
alarm_notificationsNo告警规则通知模块。
alarm_rule_descriptionNo告警规则描述。

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 behavioral burden. It does disclose a meaningful operational constraint (the interface is currently only available in the CN East-Shanghai1 region), but it does not explain update semantics — whether an update overwrites an existing rule, how the target rule is identified, whether permissions are required, or what happens to fields not supplied.

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 two short sentences, front-loaded with the tool's action and scope, with no filler. It is efficiently written, though its brevity is achieved partly by omitting information an agent would need.

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 with 11 parameters, nested objects, and no annotations or output schema. The description does not address the add-vs-update distinction, the mutual relationship between metric_alarm_spec and event_alarm_spec, or notification configuration, leaving significant gaps for a tool 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 every parameter, including the deeply nested metric_alarm_spec and event_alarm_spec structures, is already documented in the schema. The description adds no parameter-level 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb pair (add or modify) and a specific resource (AOM2.0 metric-type or event-type alarm rules), which is enough for an agent to know what the tool does. It does not explicitly distinguish this combined upsert tool from the sibling AddAlarmRule / UpdateAlarmRule / AddEvent2alarmRule tools, so the differentiation is only implicit in the name.

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?

No when-to-use guidance is given: the description never says when to prefer this upsert over the separate Add/Update siblings, nor what preconditions exist (e.g., which identifier targets an existing rule). The only contextual note is a region availability restriction (华东-上海一), which is a constraint rather than usage guidance.

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