Skip to main content
Glama

aom__AddEvent2alarmRule

Creates an event-based alarm rule in Huawei Cloud AOM, defining trigger policies and notification actions so you can monitor and respond to cloud events.

Instructions

[AOM] 新增一条事件类告警规则。

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_rule": "<action_rule>",
      "alarm_type": "<alarm_type>",
      "create_time": "<create_time>",
      "enable": "<enable>",
      "metadata": "<metadata>",
      "name": "<name>",
      "project_id": "<project_id>",
      "trigger_policies": "<trigger_policies>",
      "user_id": "<user_id>"
    },
    "name": "aom__AddEvent2alarmRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes规则名称。规则名称包含大小写字母,数字,特殊字符(_-)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。
enableYes规则是否启用
topicsNosmn信息
user_idYes用户项目id
metadataYes源数据
migratedNo是否迁移到2.0
alarm_typeYes告警类型。notification:直接告警。denoising:告警降噪。
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
action_ruleYes告警行动规则
create_timeYes创建时间
descriptionNo规则描述。描述包含大小写字母,数字,特殊字符(_-<>=,.)和汉字组成,不能以下划线、中划线开头结尾,最大长度为1024。
event_namesNo事件名称
update_timeNo更新时间
inhibit_ruleNo告警抑制规则
route_group_ruleNo告警分组规则
trigger_policiesYes触发策略
resource_providerNo事件源

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it only conveys that the operation creates something. For a 9-required-parameter mutation it says nothing about required permissions, whether required sub-objects (trigger_policies, action_rule, metadata) must pre-exist, validation failures, idempotency, or what the call returns.

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?

A single front-loaded clause with zero waste, but its brevity is under-specification rather than efficiency for a tool with 17 parameters. There is no structure to guide an agent through the required payload.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 9 required parameters, one enum-driven field, no annotations, and no output schema, a one-line purpose statement is wholly inadequate. An agent would have to derive the entire calling contract from the schema alone.

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 17 parameters, including the enums for alarm_type and trigger_type, are already documented in the schema. The description adds no meaning beyond that, which is the baseline 3 case 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?

The description states a specific verb and resource — creating (新增) a new event-type alarm rule (事件类告警规则). The qualifier 'event-type' gives some implicit separation from metric-alarm siblings such as aom__AddAlarmRule, but no sibling is named or contrasted 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?

There is no when-to-use guidance, no preconditions (e.g. project_id or action_rule must already exist), and no mention of alternatives like aom__AddOrUpdateMetricOrEventAlarmRule or aom__UpdateEventRule for modifying an existing rule. The agent is left to infer that this is the 'create' path purely from the verb.

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