Skip to main content
Glama

lts__ListStructuredLogsWithTimeRange

Query structured logs from a specified log stream within a time range using an SQL statement, returning results in key-value or row format.

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": {
      "format": "<format>",
      "log_stream_id": "<log_stream_id>",
      "project_id": "<project_id>",
      "query": "<query>",
      "time_range": "<time_range>"
    },
    "name": "lts__ListStructuredLogsWithTimeRange"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYessql语句字符串。
formatYes查询结果格式。当前仅支持:"k-v"。
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
time_rangeYes时间范围信息。
log_stream_idYes日志流id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。None
whether_to_rowsNo返回数据格式,是否为行数据,默认为false。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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, yet it says nothing about permissions required, result-size limits, pagination, rate limiting, or whether the SQL query can be expensive. It also omits what 'format: k-v' implies for the returned data shape, which is decision-relevant for a query tool.

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 redundancy and an explicit tag for the service it belongs to. It is efficient, though its brevity reflects under-specification rather than disciplined compression.

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

Completeness1/5

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

This is a five-required-parameter query tool with a nested time-range object, a raw SQL string, and no annotations or output schema. Given that complexity, a one-line purpose statement leaves the agent without the behavioral context needed to call it confidently, far short of adequate.

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 six parameters (including the nested time_range with its inclusive/exclusive flags and timezone) are already documented in the schema. The description adds no meaning beyond that, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (query/查询) and resource (structured log content/结构化日志内容) and adds scope (a specified log stream, new version). However, the '(新版)' qualifier hints at a sibling such as lts__ListQueryStructuredLogs without stating how the two differ, so an agent cannot reliably choose between them from the description 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?

There is no when-to-use guidance, no mention of prerequisites (project/log stream IDs must be obtained first), and no exclusions or named alternatives. The agent is left to infer that this is the newer structured-query path versus the older sibling purely from the parenthetical '(新版)'.

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