Skip to main content
Glama

lts__CreateNotificationTemplate

Creates a notification template for Huawei Cloud LTS alerts, defining SMS, DingTalk, WeChat, webhook, or email content so log keyword and SQL alarms trigger formatted notifications.

Instructions

[LTS] 该接口用于创建通知模板,目前每个帐户最多可以创建共100个通知模板,创建后名称不可修改。

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>",
      "locale": "<locale>",
      "name": "<name>",
      "project_id": "<project_id>",
      "source": "<source>",
      "templates": "<templates>"
    },
    "name": "lts__CreateNotificationTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
descNo模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024
nameYes通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改
typeNo保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子)
localeYes语言,必填,目前可填zh-cn和en-us
sourceYes模板来源,目前必填为LTS,否则会筛选不出来
domain_idYes租户id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
templatesYes模板正文,为一个数组
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It usefully discloses two non-obvious traits: a hard quota of 100 templates per account and that the name is immutable after creation. It says nothing about required permissions, uniqueness behavior for duplicate names, or what happens when the quota is hit.

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 with the operation up front followed by the two constraints. Nothing is wasted, though the bracketed '[LTS]' prefix carries little information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter create tool with a nested templates array and no annotations or output schema, the description covers purpose, quota, and name immutability but omits prerequisites such as the mandatory source='LTS' value and how the templates sub-types should relate to the top-level type field. Adequate but with clear gaps.

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 every parameter is already documented in the schema, including enums for locale, type and sub_type and the LTS-only requirement for source. The description adds no parameter-level meaning beyond what the schema provides, so the baseline 3 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 gives a specific verb and resource ('创建通知模板'), which an agent can distinguish from UpdateNotificationTemplate, DeleteNotificationTemplate or CreateStructTemplate by name alone. It stops short of explicitly differentiating from those siblings, so it is not a 5.

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?

It implies 'use this to create a template' but gives no explicit when-to-use versus UpdateNotificationTemplate (for modifying) or CreateStructTemplate (for a different template family). The only real guidance is the quota note (max 100 templates per account), which is a constraint rather than a routing rule.

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