Skip to main content
Glama

aom__AddAlarmRule

Add a threshold alarm rule in AOM to monitor a metric and trigger alerts when values cross a defined threshold.

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__AddAlarmRule"
  }
}

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告警清除建议。
alarm_actionsNo告警状态通知列表。
action_enabledNo是否启用通知。
alarm_rule_nameYes阈值规则名称。规则名称包含大小写字母、数字、特殊字符(-_)和汉字组成,不能以特殊字符开头或结尾,最大长度为100。
alarm_descriptionNo阈值规则描述。
evaluation_periodsYes间隔周期。
comparison_operatorYes超限条件。<:小于阈值。>:大于阈值。<=:小于等于阈值。>=:大于等于阈值。
insufficient_data_actionsNo数据不足通知列表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 burden for a 19-parameter mutation tool and discloses nothing beyond the bare create action. It does not mention that the rule is created enabled/disabled by default, how notification action lists are formatted or validated, whether the call is idempotent, or what identifiers come back (there is no output schema to fall back on).

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?

The single short sentence is front-loaded and free of redundancy, but its brevity comes from under-specification rather than disciplined editing. One added clause on scope or defaults would have cost nothing.

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 high-complexity mutation tool with 12 required parameters, no annotations, and no output schema, a single tautological sentence leaves the agent without the behavioral context it needs. The schema documents fields but nothing explains the overall contract of creating a threshold rule.

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 schema already documents all 19 parameters including enums for alarm level, comparison operator, period, and statistic. The description adds no meaning beyond the schema, which is the baseline case for full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

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

The description states a verb and resource ("添加一条阈值规则" / add a threshold rule), which is slightly more specific than the tool name because it names 'threshold rule' rather than a generic alarm rule, implicitly distinguishing it from metric/event alarm rule tools. However, it offers no detail on what constitutes a threshold rule or its scope, so it remains a near-restatement of 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?

There is no guidance on when to create a new rule versus using aom__AddOrUpdateMetricOrEventAlarmRule or aom__UpdateAlarmRule, nor any prerequisite, permissions, or quota context. The agent must infer the entire selection decision from sibling names alone.

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