Skip to main content
Glama

lts__CreateKeywordsAlarmRule

Creates a Huawei Cloud LTS keyword alarm rule to notify when log keyword conditions match, with configurable frequency, severity, and notification settings.

Instructions

[LTS] 该接口用于创建关键词告警,目前每个帐户最多可以创建共200个关键词告警与SQL告警。

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_name": "<keywords_alarm_rule_name>",
      "keywords_alarm_send": "<keywords_alarm_send>",
      "keywords_requests": "<keywords_requests>",
      "notification_frequency": "<notification_frequency>",
      "project_id": "<project_id>"
    },
    "name": "lts__CreateKeywordsAlarmRule"
  }
}

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
keywords_requestsYes关键词详细信息
keywords_alarm_sendYes是否发送
keywords_alarm_levelYes告警级别
alarm_action_rule_nameNo告警行动规则名称
notification_frequencyYes通知频率,单位(分钟)
notification_save_ruleNo通知主题
trigger_condition_countNo触发条件:触发次数;默认为1
whether_recovery_policyNo是否打开恢复通知;默认false
keywords_alarm_rule_nameYes关键词告警名称
trigger_condition_frequencyNo触发条件:触发周期;默认为1
keywords_alarm_rule_descriptionNo关键词告警信息描述

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/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 for a 15-parameter mutation. The only behavioral fact disclosed is the 200-alarm quota; nothing is said about required permissions, whether the call is idempotent, what happens on quota exhaustion, or what the response contains (e.g., a created rule ID) that a follow-up Update/Delete would need.

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?

A single front-loaded sentence that states purpose first and the quota second, with no filler. It is efficient, though the quota clause is the only content beyond restating the name.

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 tool with 8 required parameters, deeply nested objects, no annotations and no output schema, the description is thin. It says nothing about prerequisite setup (domain_id/project_id retrieval, log group/stream IDs, alarm action rule wiring), the conditional fields inside frequency, or what the caller gets back to manage the rule afterwards.

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% and every property, including the nested frequency and keywords_requests objects, is documented in the schema itself. The description adds no parameter-level meaning beyond that, so the baseline 3 for high-coverage schemas 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+resource (创建关键词告警 / create keyword alarm) in Chinese, which matches the tool name and clearly distinguishes it from the SQL-alarm siblings. It does not explicitly contrast it with the many other alarm-creation siblings (lts__CreateSqlAlarmRule, ces__CreateAlarm), but the resource noun is specific enough that an agent can tell what is being created.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use / when-not-to-use guidance or named alternative, so the agent must infer that SQL alarms go to a different tool. The one piece of usage-relevant context supplied is the account-level quota (200 keyword+SQL alarms combined), which is genuinely useful before calling but is a limit, not routing 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