Skip to main content
Glama

lts__UpdateKeywordsAlarmRule

Updates an existing Huawei Cloud LTS keyword alarm rule, letting you change its name, level, trigger frequency, notification settings, and monitored log keywords.

Instructions

[LTS] 该接口用于修改关键词告警。

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": {
      "domain_id": "<domain_id>",
      "frequency": "<frequency>",
      "keywords_alarm_level": "<keywords_alarm_level>",
      "keywords_alarm_rule_id": "<keywords_alarm_rule_id>",
      "keywords_alarm_rule_name": "<keywords_alarm_rule_name>",
      "keywords_alarm_send": "<keywords_alarm_send>",
      "keywords_alarm_send_code": "<keywords_alarm_send_code>",
      "keywords_requests": "<keywords_requests>",
      "notification_frequency": "<notification_frequency>",
      "project_id": "<project_id>"
    },
    "name": "lts__UpdateKeywordsAlarmRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
domain_idYesdomainId
frequencyYes告警统计周期
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
recovery_policyNo恢复策略周期;默认为3
alarm_rule_aliasNo规则名称
keywords_requestsYes关键词详细信息
keywords_alarm_sendYes是否发送
keywords_alarm_levelYes告警级别
alarm_action_rule_nameNo告警行动规则名称
keywords_alarm_rule_idYes关键词告警规则id
notification_frequencyYes通知频率,单位(分钟)
notification_save_ruleNo通知主题
trigger_condition_countNo触发条件:触发次数;默认为1
whether_recovery_policyNo是否打开恢复通知;默认false
keywords_alarm_rule_nameYes关键词告警名称
keywords_alarm_send_codeYes发送主题 0:不变 1:新增 2:修改 3:删除
trigger_condition_frequencyNo触发条件:触发周期;默认为1
keywords_alarm_rule_descriptionNo关键词告警信息描述

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses nothing: no permission or domain/project scoping requirements, no statement of whether the update is destructive or reversible, and no indication of what happens to fields omitted from the request. For an 18-parameter mutation with nested objects, this is a serious gap.

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 sentence contains no wasted words, but it is under-specified rather than genuinely concise. It is front-loaded but conveys almost no information.

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?

For a mutation tool with 18 parameters (10 required), nested objects, no annotations, and no output schema, the description is completely inadequate. It omits update semantics, required identifiers, side effects, and any routing guidance.

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 18 parameters, including the Frequency and KeywordsRequest nested objects. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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?

"该接口用于修改关键词告警" states the verb (modify) and resource (keyword alarm rule), so the operation is identifiable. However, it is essentially a restatement of the tool name UpdateKeywordsAlarmRule and adds no scope detail, such as whether it is a full replacement or a partial update, and gives no explicit differentiation from the Create/Delete/List keyword-alarm siblings.

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 lts__CreateKeywordsAlarmRule, lts__UpdateAlarmRuleStatus, or lts__UpdateSqlAlarmRule, and no stated prerequisites. The agent must infer that "modify" means updating an existing rule identified by keywords_alarm_rule_id.

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