Skip to main content
Glama

lts__UpdateStructConfig

Updates a log stream's structured configuration using a specified built-in or custom template, allowing field analysis and tag settings to be adjusted.

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": {
      "log_group_id": "<log_group_id>",
      "log_stream_id": "<log_stream_id>",
      "project_id": "<project_id>",
      "template_id": "<template_id>",
      "template_name": "<template_name>",
      "template_type": "<template_type>"
    },
    "name": "lts__UpdateStructConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
tag_fieldsNoTag字段数组,只需要填写与模板中is_analysis状态不同的字段
demo_fieldsNo示例字段数组,只需要填写与模板中is_analysis状态不同的字段
template_idYes所用模板id。当使用系统模板时,当前属性可以为空
log_group_idYes日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
log_stream_idYes日志流ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
template_nameYes所用模板名称,会对模板名称及id进行校验
template_typeYes所用模板类型,分为built_in及custom两种类型,对应系统模板和自定义模板,系统模板分为CTS,VPC和ELB三种。
quick_analysisNo是否开启demo_fields和tag_fields快速分析,为true时,所有的demo_fields和tag_fields全部字段均打开快速分析;不填或者为false,以模板中的demo_fields和tag_fields中的is_analysis决定是否开启快速分析。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/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 disclosure burden, yet it only states that a modification happens. It does not say whether the operation is idempotent, whether unspecified fields are reset, how quick_analysis interacts with per-field is_analysis, or what validation errors to expect; the schema hints at some of this but the description adds nothing.

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 sentence with no filler, and the resource being modified is front-loaded. It is lean, though the leanness here reflects under-specification rather than discipline.

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 nine-parameter, six-required mutation tool with no annotations and no output schema, and the description is one generic sentence. Nothing tells the agent about side effects, template resolution rules, or the response, so it is not complete for the tool's complexity even though the input schema is well documented.

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 schema already explains all nine parameters including template_id/template_name validation, template_type enum meanings, and the rule that only fields differing from the template's is_analysis need to be sent. The description adds no semantic meaning beyond that, which is the expected baseline when the schema does the heavy lifting.

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 verb (修改/modify) and a resource (结构化配置/structured configuration) and hints at the mechanism (通过结构化模板/via a structured template). That is enough to know it is an update operation on log structuring config, but it never distinguishes this from sibling lts__UpdateStructTemplate, which edits the template itself rather than the config that references it.

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 call this instead of CreateStructConfig or UpdateStructTemplate, and no statement of prerequisites such as needing an existing log group/stream or a valid template id. The only implicit cue is that it is a modification, so the agent must infer usage 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