Skip to main content
Glama

lts__ListLogHistogram

Queries keyword match counts in Huawei Cloud LTS logs across a specified time range and returns histogram data for trend analysis by log group and stream.

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>",
      "group_id": "<group_id>",
      "key_word": "<key_word>",
      "project_id": "<project_id>",
      "start_time": "<start_time>",
      "step_interval": "<step_interval>",
      "stream_id": "<stream_id>"
    },
    "name": "lts__ListLogHistogram"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_timeYes结束时间
group_idYes日志组ID
key_wordYes关键词
stream_idYes日志流ID
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。
start_timeYes开始时间
is_iterativeNo日志迭代查询,默认为false(不开启迭代),true为开启迭代。
step_intervalYes步长间隔

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.1/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 delivers almost nothing: it does not state that this is a read-only query, whether it requires project/group/stream access, how large result sets are handled, or what shape the histogram takes. The only signal is the word 查询, implying a non-mutating read, which is a minimal inference rather than disclosed behavior.

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

Conciseness2/5

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

The single short phrase is front-loaded and free of padding, but conciseness here is achieved through under-specification rather than discipline – a one-line description for an 8-parameter, 7-required query tool leaves nearly everything unsaid.

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?

With no annotations, no output schema, 8 parameters and 7 of them required, the description should explain what the tool returns and how the required time and interval parameters interact. It explains none of this, so an agent cannot confidently invoke it or interpret the result.

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 8 parameters (start_time, end_time, key_word, group_id, stream_id, project_id, step_interval, is_iterative) are already documented in the schema. The description adds no additional meaning about time formats, interval units, or iteration semantics, so the baseline 3 applies.

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

Purpose2/5

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

"[LTS] 查询关键词搜索条数" gives a verb (查询/query) and an object (条数/count), but it does not convey the "histogram" nature named in the tool name – i.e. counts bucketed over time by step_interval – nor does it distinguish this from siblings such as lts__ListLogContext or lts__ListLogStreams. The agent must infer the tool's real output from the name and the step_interval parameter.

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 statement of prerequisites, and no named alternative. Nothing tells the agent when a histogram query is preferable to a raw log listing or context query, which is exactly the choice it faces among the lts__ siblings.

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