Skip to main content
Glama

lts__UpdateLogStream

Updates the log retention period for a specified Huawei Cloud LTS log stream, letting you set storage duration in days (1-365) to manage log lifecycle and costs.

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>",
      "ttl_in_days": "<ttl_in_days>"
    },
    "name": "lts__UpdateLogStream"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo标签字段信息
project_idYes项目ID,获取方式请参见:获取帐号ID、项目ID、日志组ID、日志流ID。
ttl_in_daysYes日志存储时间(天)。
log_group_idYes日志组ID,获取方式请参见:获取帐号ID、项目ID、日志组ID、日志流ID。
log_stream_idYes日志流ID,获取方式请参见:获取帐号ID、项目ID、日志组ID、日志流ID。
whether_log_storageNo日志是否存储

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 behavioral burden. It does not disclose that this is an irreversible mutation, what permissions are needed, how changing ttl_in_days affects already-stored logs, or whether whether_log_storage disables storage entirely — all material consequences for an agent deciding whether to call it.

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 filler or repetition, and the tag prefix is the only overhead. It is efficient, though its brevity reflects under-specification rather than tight editing.

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?

For a six-parameter mutation with no annotations and no output schema, the description is too thin: it covers only the TTL change and omits the other updatable fields, side effects, and permission requirements. An agent would need to inspect the schema and guess at consequences before calling it.

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 every parameter including the ttl_in_days range of 1-365. The description adds no parameter-level meaning beyond the schema and in fact mentions only storage duration, giving no hint about the roles of tags or whether_log_storage. 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?

States a specific verb and resource: modify the log storage duration of a specified log stream, which is clearly distinct from sibling operations such as DeleteLogStream, ListLogStreams, or UpdateLogGroup. However, it frames the operation as only changing storage duration, while the schema shows the call can also set tags and whether_log_storage, so the stated scope understates what the tool actually modifies.

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 versus alternatives, no prerequisites stated (the log group and stream must already exist, and the required project_id/log_group_id/log_stream_id must be resolved first), and no note on which sibling to use for listing or creating streams. Usage is only inferable from the 'update' 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