Skip to main content
Glama

lts__CreateSqlAlarmRule

Creates an LTS SQL alarm rule to monitor log query results and send notifications when defined conditions are met.

Instructions

[LTS] 该接口用于创建SQL告警,目前每个帐户最多可以创建共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": {
      "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_name": "<sql_alarm_rule_name>",
      "sql_alarm_send": "<sql_alarm_send>",
      "sql_requests": "<sql_requests>"
    },
    "name": "lts__CreateSqlAlarmRule"
  }
}

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告警级别
sql_alarm_rule_nameYesSQL告警名称
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.9/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. It usefully discloses the account-level quota of 200 keyword and SQL alarms combined, but does not mention authorization needs, idempotency, side effects, failure behavior when the quota is exceeded, or notification behavior.

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?

The definition is a single front-loaded sentence that states the purpose and then the quota constraint. It contains no wasted wording, though it is too minimal to provide structural guidance for a complex 17-parameter create operation.

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?

This is a complex creation tool with nested objects, 17 parameters, no annotations, and no output schema. The description only states that it creates SQL alarms and notes the quota, leaving the caller dependent on the schema and without guidance on setup, alternatives, or operational behavior.

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 input schema already documents the 17 parameters, including nested objects and enums. The description adds no parameter-level meaning beyond the create action and quota, so the baseline score of 3 is appropriate.

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 action, "创建SQL告警" (create SQL alarm), and identifies the resource as SQL alarms. It mentions keyword alarms only in the quota context, so it does not explicitly route callers to CreateKeywordsAlarmRule, leaving some sibling differentiation implicit.

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?

Usage is only implied by the tool name and the phrase "用于创建SQL告警" (used to create SQL alarms). The description does not explain when to use this versus UpdateSqlAlarmRule, ListSqlAlarmRules, or CreateKeywordsAlarmRule, nor does it state prerequisites beyond the quota.

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