Skip to main content
Glama

msgsms__UpdateTemplate

Revise an SMS template's name, content, and variables to correct a rejected template and resubmit it for review.

Instructions

[MSGSMS] 该接口用于用户修改模板信息,目前仅支持审核不通过的短信模板重新修改

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": {
      "app_id": "<app_id>",
      "id": "<id>",
      "project_id": "<project_id>",
      "region": "<region>",
      "template_content": "<template_content>",
      "template_name": "<template_name>",
      "template_type": "<template_type>"
    },
    "name": "msgsms__UpdateTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes模板ID
app_idYes应用主键ID
regionYes地域
sign_idNo签名主键ID,只有地域为国内时,该字段有效
bracketsNo中括号类型。支持枚举值:
project_idYes项目ID。获取方法请参见 [获取帐号、用户、项目的名称和ID](https://support.huaweicloud.com/api-msgsms/sms_05_0020.html)。
flow_statusNo流程状态
send_countryNo发送国家id列表,只有地域为国际时,该字段有效
template_descNo模板描述
template_nameYes模板名称
template_typeYes模板类型。只有地域为国内时,该字段有效。支持枚举值:
template_contentYes模板内容
universal_templateNo是否为通用模板
variable_attributesNo模板参数

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose one important precondition: the target template must be in a failed-review state. However, it says nothing about required permissions, whether a successful update resets or re-triggers the review workflow, or whether unlisted fields are overwritten.

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?

One short sentence with the constraint front-loaded and no filler; the namespace prefix is harmless. It is appropriately sized, though it could have used the remaining space for the behavioral gaps rather than stopping at one clause.

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 14-parameter mutation tool with seven required fields and no annotations or output schema, a single sentence is thin. It omits update semantics (full replace vs partial), effects on review status, permissions, and error conditions an agent would need before invoking it.

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% across all 14 parameters, so the schema already documents ids, region, content, and variable attributes in detail. The description adds no parameter-level meaning beyond that, making the baseline 3 correct.

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 names a specific verb (修改/modify) and resource (模板信息/template information), so it is distinguishable from CreateTemplate, DeleteTemplate, ListTemplateDetails, and ShowTemplate. It does not explicitly contrast itself with those siblings, which keeps it from 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 Guidelines4/5

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

It supplies a concrete applicability rule: only SMS templates that failed review (审核不通过) can be re-modified, which implicitly tells the agent when NOT to call it. It does not name an alternative tool for the other cases, so it falls short of explicit routing.

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