Skip to main content
Glama

lts__DeleteLogStream

Deletes a specified log stream within a log group; if the stream has log dumping configured, cancel it before deletion.

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

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
log_group_idYes租户想删除的日志流所在的日志组的groupid,一般为36位字符串。None
log_stream_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

A3.7/5.0
Behavior3/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. It correctly discloses the dump-configuration blocker, which is useful, but says nothing about whether deletion is permanent/irreversible, what happens to indexed data or shards, required permissions, or what an error looks like when the precondition fails.

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?

Two short sentences with zero padding; the purpose comes first and the deletion precondition follows immediately. Every clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter destructive tool with no annotations and no output schema, the definition covers the core purpose and one key dependency but leaves the safety profile (irreversibility, permission requirements, failure modes) entirely to inference. Adequate to attempt the call, not adequate to predict its consequences.

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 all three path parameters (project_id, log_group_id, log_stream_id) are already documented with lengths and retrieval links. The description only restates the group/stream relationship implied by the schema and adds no new semantics.

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 gives a specific verb and resource – deleting a specified log stream inside a specified log group – which is enough to distinguish it from siblings such as lts__DeleteLogGroup, lts__UpdateLogStream, and lts__CreateLogStream. It does not explicitly name those siblings, so differentiation comes from the resource wording rather than from direct routing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a concrete precondition: if the log stream has log dump configured, the dump must be cancelled before deletion. That is real when-to-use guidance an agent would otherwise miss, but there is no mention of alternatives (e.g., disabling collection or deleting the parent group) or of when deletion should be avoided.

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