Skip to main content
Glama

lts__ListQueryStructuredLogs

Query structured log entries from a specified Huawei Cloud LTS log stream within a time range, optionally filtering with SQL and returning raw log content.

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": {
      "end_time": "<end_time>",
      "log_group_id": "<log_group_id>",
      "log_stream_id": "<log_stream_id>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "lts__ListQueryStructuredLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_timeYes搜索结束时间(UTC时间,毫秒级)。
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
start_timeYes搜索起始时间(UTC时间,毫秒级)。
log_group_idYes日志组id。None
log_stream_idYes日志流id。None
sql_expressionNo支持SQL语句搜索, 目前支持"GROUP BY", "LIKE"和"WHERE"。
original_contentNo返回内容中是否包含原始日志, 默认为false。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior1/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, yet it discloses nothing beyond the bare purpose. It says nothing about pagination, result limits, permissions, cost of the SQL scan, or that sql_expression unlocks group-by/like/where filtering — all of which materially change how the call behaves.

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 zero padding and no redundant restatement of the name. It is efficient, though the brevity is achieved by omitting content rather than by editing it down.

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 query tool with five required parameters and no output schema, the description should describe the result shape and pagination behavior; it does neither. It also never mentions the SQL-expression search mode, which is the tool's most consequential capability and is invisible to a reader of the prose alone.

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%, so all seven parameters, including the time bounds and sql_expression, are already documented in the schema. The description adds no parameter-level meaning of its own, 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 (查询/query) and resource (结构化日志内容/structured log content) scoped to a named log stream. It is clear what the tool does, but it does nothing to distinguish itself from close siblings such as lts__ListStructuredLogsWithTimeRange or lts__ListLogs, leaving the agent to infer the difference from schemas alone.

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 offers no when-to-use guidance, no exclusions, and no pointer to an alternative tool. An agent cannot tell from this text when structured-log querying is preferable to the sibling list/query variants.

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