Skip to main content
Glama

lts__CreateStructConfig

Creates a structured configuration for a Huawei Cloud LTS log stream using a built-in or custom template, applying demo and tag fields with optional quick analysis.

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__CreateStructConfig"
  }
}

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.5/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 behavioral burden, and it discloses nothing: no note that this is a state-creating mutation, no conflict/duplicate behavior, no permission or template-validation requirements (the schema implies template_name is validated against template_id, but the description never says so), and no indication of what is returned. Only the word 创建 conveys mutation.

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?

The single sentence is front-loaded and contains no filler, but for a 9-parameter create mutation that is under-specification rather than conciseness. There is no structure beyond a bracketed product tag plus 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?

This is a complex creation tool (6 required parameters including path IDs and template identity, no annotations, no output schema), yet the description is one sentence. An agent gets no information on preconditions, failure modes, or the effect of the call, which is clearly insufficient given zero annotation coverage.

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 9 parameters, so the input schema already explains project_id, template_id/name/type, tag_fields, demo_fields, and quick_analysis in detail. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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 states a verb (创建/create) and a resource (结构化配置/structured config) and hints at the mechanism (通过结构化模板/via a structured template). However, "structured configuration" is never grounded — it does not say it binds a template to a log group/stream, and it does not distinguish this from the sibling CreateStructTemplate, which also involves structured templates. An agent must infer the distinction from the schema's log_group_id/log_stream_id fields.

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 when-to-use guidance, no mention of the alternative CreateStructTemplate or UpdateStructConfig, and no prerequisites (e.g. an existing log stream, or whether a config must not already exist). Usage is only inferable from the tool name and the schema's required fields.

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