Skip to main content
Glama

lts__UpdateLogGroup

Updates the log retention period for a specified LTS log group by setting the storage duration in days (1–30). Use it to adjust how long logs are kept.

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

Input Schema

NameRequiredDescriptionDefault
tagsNo标签字段信息
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
ttl_in_daysYes日志存储时间 天。 取值范围为 [1, 30]
log_group_idYes日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)None

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 beyond the bare mutation. It omits critical consequences such as whether shortening the TTL causes older logs to be purged, whether the change is reversible, and what permissions are required.

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 short sentence with zero filler, front-loading the verb and resource. Its brevity is efficient, though it shades into under-specification rather than tightness.

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 mutation tool with no annotations and no output schema, the description is too thin. It also understates scope: the schema accepts a tags array that would be updated too, but the description claims the operation only modifies storage duration, leaving the agent unaware of the second effect.

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%, with the ttl_in_days range [1, 30] and the project_id/log_group_id lookup documented inline, so the schema does the heavy lifting. The description adds no meaning beyond that baseline, and notably never mentions the optional tags parameter.

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 ('修改' / modify) applied to a specific resource ('指定日志组' / a specified log group) and a specific field ('日志存储时长' / log storage duration), which distinguishes it from siblings like UpdateLogStream or UpdateLogConvergeConfig. It is clear what the tool does, though it does not name an alternative outright.

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?

No guidance on when to use this tool, when not to, or which sibling to prefer for related updates. There is also no mention of prerequisites such as needing the log group to already exist or having permission to change retention.

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