Skip to main content
Glama

lts__UpdateSqlAlarmRule

Updates an existing LTS SQL alarm rule, modifying query conditions, evaluation frequency, notification settings, and alarm details for log monitoring alerts.

Instructions

[LTS] 该接口用于修改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": {
      "condition_expression": "<condition_expression>",
      "domain_id": "<domain_id>",
      "frequency": "<frequency>",
      "notification_frequency": "<notification_frequency>",
      "project_id": "<project_id>",
      "sql_alarm_level": "<sql_alarm_level>",
      "sql_alarm_rule_id": "<sql_alarm_rule_id>",
      "sql_alarm_rule_name": "<sql_alarm_rule_name>",
      "sql_alarm_send": "<sql_alarm_send>",
      "sql_alarm_send_code": "<sql_alarm_send_code>",
      "sql_requests": "<sql_requests>"
    },
    "name": "lts__UpdateSqlAlarmRule"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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 burden of behavioral disclosure, and it provides almost none. It does not say whether this is a full replace or a partial update (important, since 11 of 20 parameters are required), what happens to fields omitted from the payload, whether permissions or an existing rule ID are required, or what the call returns. Only the bare word 修改 hints at mutation.

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?

It is a single front-loaded sentence with zero waste, so it is structurally fine and not verbose. The problem is under-specification rather than excess, so it cannot score above the minimum-viable band.

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 20-parameter mutation tool with nested objects, 11 required fields, no annotations, and no output schema, one sentence of restatement is wholly insufficient. An agent getting this definition had essentially no guidance on semantics, side effects, or failure modes.

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 nothing about the 20 parameters. The gaps that remain, such as what sql_alarm_send_code values 0-3 mean in an update context, are already documented in the schema, so the description does not need to compensate.

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 sentence names the operation (修改/modify) and the resource (SQL告警), which does separate it from CreateSqlAlarmRule, DeleteSqlAlarmRule, and UpdateAlarmRuleStatus. However, it is little more than a restatement of the tool name UpdateSqlAlarmRule, with no scope or effect details. It lands at vague-but-not-misleading rather than specific.

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 at all: no prerequisites, no statement that the rule must already exist, and no mention of alternatives such as Create vs Update or the sibling UpdateKeywordsAlarmRule for non-SQL rules. The agent must infer everything from the name 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