Skip to main content
Glama

lts__CreateLogStreamIndex

Creates full-text and field indexes for a specified Huawei Cloud LTS log stream, enabling targeted log search and 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": {
      "fullTextIndex": "<fullTextIndex>",
      "group_id": "<group_id>",
      "logStreamId": "<logStreamId>",
      "project_id": "<project_id>",
      "stream_id": "<stream_id>"
    },
    "name": "lts__CreateLogStreamIndex"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNo字段索引配置
group_idYes'项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID'
stream_idYes'项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID'
project_idYes'项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID'
logStreamIdYes日志流id
fullTextIndexYes全文索引配置
sqlAnalysisEnableNo是否开启可视化

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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. '创建' implies a write, but it does not say whether an existing index is replaced or merged, whether the operation is idempotent, what permissions are needed, or what happens to the stream's queryability during creation. For a mutation tool with nested configuration objects, 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 zero filler, so nothing is wasted, but the brevity reflects under-specification rather than disciplined editing. There is no structure to front-load because only the bare purpose is present.

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?

Against a tool with seven parameters, nested objects, no annotations, and no output schema, one sentence is not enough. An agent cannot tell from the description whether index creation is additive or destructive, what a successful response contains, or how to recover from a conflict — all of which the description should supply given the absence of annotations.

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 seven parameters, including the nested fullTextIndex and fields structures. The description adds no meaning beyond that — no explanation of how fullTextIndex interacts with fields, or what sqlAnalysisEnable implies for query behavior — so the baseline 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 combination — create (创建) an index (索引) for a specified log stream (指定流) — which is distinguishable from siblings such as CreateLogStream or DeleteLogStream. It stops short of differentiating index creation from other write operations or clarifying that both full-text and field-level index configuration are involved, but the core purpose is unambiguous.

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 prerequisites (e.g. the stream must already exist, required IAM permissions), and no mention of alternatives or when not to call it. The agent must infer entirely from the tool name that this is a setup/configuration step for log search.

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