Skip to main content
Glama

aom__UpdateAlarmRule

Modify an existing threshold alarm rule by updating its metric, comparison operator, threshold, evaluation periods, and notification actions to match changing monitoring needs.

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": {
      "alarm_level": "<alarm_level>",
      "alarm_rule_name": "<alarm_rule_name>",
      "comparison_operator": "<comparison_operator>",
      "dimensions": "<dimensions>",
      "evaluation_periods": "<evaluation_periods>",
      "metric_name": "<metric_name>",
      "namespace": "<namespace>",
      "period": "<period>",
      "project_id": "<project_id>",
      "statistic": "<statistic>",
      "threshold": "<threshold>",
      "unit": "<unit>"
    },
    "name": "aom__UpdateAlarmRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitYes时间序列单位
periodYes统计周期。60000:一分钟。300000:五分钟。900000:十五分钟。3600000:一小时。
namespaceYes时间序列命名空间。
statisticYes统计方式。
thresholdYes超限值。
dimensionsYes时间序列维度。
is_turn_onNo阈值规则是否启用。
ok_actionsNo正常状态通知列表。
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
alarm_levelYes告警级别。1:紧急,2:重要,3:一般,4:提示。
metric_nameYes时间序列名称。名称长度取值范围为1~255个字符。
alarm_adviceNo告警清除建议。字符长度为0-255。
alarm_actionsNo告警状态通知列表。
action_enabledNo是否启用通知。
alarm_rule_nameYes阈值规则名称。规则名称包含大小写字母、数字、特殊字符(-_)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。
alarm_descriptionNo阈值规则描述。字符长度为0-1024。
evaluation_periodsYes间隔周期。
comparison_operatorYes超限条件。<:小于阈值。>:大于阈值。<=:小于等于阈值。>=:大于等于阈值。
insufficient_data_actionsNo数据不足通知列表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior1/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, yet it only restates that the rule is modified. It does not disclose permissions, whether updates are partial or full, how omitted optional fields are treated, side effects, reversibility, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no unnecessary wording. Its problem is under-specification, not verbosity.

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 complex 19-parameter mutation tool with no annotations and no output schema, the description is far too sparse. The rich schema covers parameters, but the agent still lacks update semantics, side-effect disclosure, and guidance on omitted fields.

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 the baseline is 3 even though the description adds no parameter-level meaning. The schema documents the 19 parameters and enums, but the description does not clarify selection semantics or required-field behavior.

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: modify a threshold rule. It is clear what the tool does, but it does not distinguish this update operation from sibling update/add alarm-rule tools.

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 tool versus AddAlarmRule, AddOrUpdateMetricOrEventAlarmRule, UpdateActionRule, or other sibling tools. No prerequisites or exclusions are mentioned.

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