Skip to main content
Glama

lts__CreateLogDumpObs

Creates a periodic log dump that transfers logs from one or more LTS log streams to an OBS bucket, with configurable dump cycle, storage format, and file prefix.

Instructions

[LTS] 该接口用于将指定的一个或多个日志流的日志转储到OBS服务。

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_ids": "<log_stream_ids>",
      "obs_bucket_name": "<obs_bucket_name>",
      "period": "<period>",
      "period_unit": "<period_unit>",
      "project_id": "<project_id>",
      "storage_format": "<storage_format>",
      "type": "<type>"
    },
    "name": "lts__CreateLogDumpObs"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes周期性转储, 必须填 cycle。
periodYes转储周期的长度, 与 period_unit 拼接后必须在该列表中 ["2min","5min","30min","1hour","3hour","6hour","12hour"]。
switch_onNo是否开启转储 true/false, 默认为 true
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
period_unitYes转储周期的单位, 与 period 拼接后必须在该列表中 ["2min","5min","30min","1hour","3hour","6hour","12hour"]。
prefix_nameNo转储至OBS桶中的日志文件前缀。
log_group_idYes日志组id。
log_stream_idsYes日志流id列表, 可以指定一个或多个日志流进行obs周期性转储
storage_formatYes转储格式 RAW/JSON, 默认为 RAW。
dir_prefix_nameNo自定义文件夹路径。
obs_bucket_nameYesobs 桶名称。

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 indicates that logs are dumped to OBS, but does not explain that this is a periodic dump, whether it creates or modifies a configuration, what happens on repeated calls, permission requirements, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is a single, front-loaded sentence with no redundant or filler wording. It communicates the core action efficiently.

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 an 11-parameter mutation tool with no annotations and no output schema, a one-sentence purpose statement is not enough. It omits important context such as the periodic nature of the dump, required OBS setup, and the fact that the operation creates a dump configuration rather than merely exporting logs once.

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 input schema already documents all 11 parameters in detail. The description adds only the high-level notion that one or more log streams may be supplied, which is consistent with the array parameter but does not add meaning beyond the schema.

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 names a specific action and resource: dumping the logs of one or more specified log streams to OBS. It is distinguishable from sibling tools such as log-group or log-stream management, though it does not explicitly clarify that this creates a periodic dump configuration rather than a one-off export.

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 description states only the basic purpose and offers no guidance on when to use this tool, when not to use it, or which alternatives to consider. It also omits prerequisites such as required permissions or the need for an existing OBS bucket.

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