Skip to main content
Glama

lts__CreateStructTemplate

Creates a structured parsing template for a specified LTS log stream, defining parse type and fields so raw logs become searchable and analyzable.

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

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.9/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 almost nothing: it does not say whether creation fails on duplicate configs, whether the call is idempotent, what permissions are required, or how parse_type conditionally changes required inputs. For an unannotated mutation tool, a single declarative sentence 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with no filler or repetition, which is efficient. It is arguably under-sized for a tool with 12 parameters and nested objects, but nothing present is wasteful.

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?

Twelve parameters, nested objects, seven required fields, conditional dependencies, no annotations and no output schema make this a complex call, yet the description explains nothing about the conditional rules or the result. The schema compensates for parameter details but not for behavioral and usage context.

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 documents all 12 parameters including the conditional requirements (tokenizer for split, regex_rules for custom_regex, layers for json). The description adds no parameter meaning beyond that, so the baseline of 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 states a specific verb and resource ('创建...结构化配置') plus the scoping parent ('指定日志流下'), so an agent knows exactly what is produced. It does not name or distinguish itself from siblings such as lts__UpdateStructTemplate or lts__CreateStructConfig, so it falls short of 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 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 instead of lts__UpdateStructTemplate (modify existing config) or lts__CreateStructConfig (a closely named sibling), and no prerequisites such as needing the log group/stream to exist first. Usage must be inferred entirely from the verb.

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