Skip to main content
Glama

lts__CreateLogStream

Creates a log stream in a specified log group so you can organize and store logs for a project.

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_name": "<log_stream_name>",
      "project_id": "<project_id>"
    },
    "name": "lts__CreateLogStream"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签字段信息
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
ttl_in_daysNo日志存储时间
log_group_idYes租户想创建的日志流所在的日志组的groupid,一般为36位字符串。None
log_stream_nameYes需要创建的日志流名称。
log_stream_name_aliasNo日志流名称别名
enterprise_project_nameNo企业项目名称

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 provided, so the description carries the full burden of behavioral disclosure. It does not cover naming-uniqueness rules, whether the call is idempotent, whether it returns a created stream ID, or which errors arise for a bad group ID or duplicate name; those gaps matter for a mutation tool.

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 front-loaded sentence with no wasted words. It is efficient but perhaps over-terse given the tool's seven parameters.

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 no annotations, no output schema, and seven parameters, the definition should explain what happens after creation, what can go wrong, and how this differs from the Update and Index variants. The one-sentence description leaves all of that unexplained.

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 coverage is 100% and all seven parameters carry their own descriptions including length bounds and the enum for ttl_in_days. The description adds no 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: create a log stream under a specified log group. The verb distinguishes it from sibling tools such as lts__DeleteLogStream, lts__ListLogStream, and lts__UpdateLogStream, though it never names them explicitly.

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?

The definition gives no when-to-use guidance, no prerequisites such as whether the log group must already exist or whether the caller needs particular permissions, and no mention of alternatives. Only purpose is stated.

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