Skip to main content
Glama

lts__UpdateStructTemplate

Update the structured configuration for a specified log stream in Huawei Cloud LTS, enabling adjustment of parsing rules and fields for log data.

Instructions

[LTS] 该接口用于修改指定日志流下的结构化配置。

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": {
      "content": "<content>",
      "demo_fields": "<demo_fields>",
      "log_group_id": "<log_group_id>",
      "log_stream_id": "<log_stream_id>",
      "parse_type": "<parse_type>",
      "project_id": "<project_id>",
      "tag_fields": "<tag_fields>"
    },
    "name": "lts__UpdateStructTemplate"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNo结构化方式
layersNoparse_type为json类型时必填,解析层数,目前固定是3
contentYes示例日志
tokenizerNoparse_type为split类型时必填,分隔符,分词符号
log_formatNoparse_type为nginx类型时必填,nginx日志格式模板
parse_typeYes结构化方式
project_idYes项目ID
tag_fieldsYestag字段列表(使用tag字段解析时需要,其中系统模板不支持使用tag字段)。
demo_fieldsYes结构化字段
regex_rulesNoparse_type为custom_regex类型时必填,regex提取规则
log_group_idYes日志组ID
log_stream_idYes日志流ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 mutation of type update. It does not disclose whether the call replaces the entire structured configuration or patches it, whether required fields must be re-sent, whether permissions or a prior template are needed, or whether the operation is reversible. For a 12-parameter write tool this is a substantial gap.

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?

A single short sentence with no wasted words, but the brevity is under-specification rather than tight writing. There is no front-loaded structure covering scope, preconditions, or conditional parameter coupling.

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?

With 12 parameters, 7 required, nested objects, conditional fields, and no output schema or annotations, an agent needs more than a one-line purpose to call this correctly. The description omits preconditions, side effects on the existing configuration, and any hint that the required content/demo_fields must match the chosen parse_type.

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%, including conditional requirements for layers, tokenizer, log_format, and regex_rules keyed to parse_type, so the schema does the heavy lifting and baseline 3 applies. The description adds nothing beyond that, but is not penalized for it under the high-coverage rule.

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 description names a specific verb (修改/modify) and resource (指定日志流下的结构化配置), so the action is identifiable. However, it does not distinguish this tool from sibling lts__UpdateStructConfig or lts__UpdateStructTemplate-adjacent operations, leaving the agent to guess which update endpoint applies to a template versus a config.

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 guidance on when to use this tool, no prerequisites (e.g., the config must already exist on the log stream), and no mention of alternatives such as CreateStructTemplate or UpdateStructConfig. The single sentence only restates a purpose.

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