Skip to main content
Glama

lts__ListTopnTrafficStatistics

Retrieve top N log groups or log streams by traffic volume within a time range, with filtering, sorting, and metric selection for LTS usage analysis.

Instructions

[LTS] 统计top n的日志组或日志流流量

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>",
      "filter": "<filter>",
      "is_desc": "<is_desc>",
      "project_id": "<project_id>",
      "resource_type": "<resource_type>",
      "search_list": "<search_list>",
      "sort_by": "<sort_by>",
      "start_time": "<start_time>",
      "topn": "<topn>"
    },
    "name": "lts__ListTopnTrafficStatistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
topnYes查询前多少数据,范围1~100
filterYes过滤条件 {
is_descYes是否降序 true / false
sort_byYes排序依据,index/write/storage/basicTransfer/seniorTransfer/coldStorage,必须是search_list中存在的数据
end_timeYes结束时间时间戳,毫秒时间
project_idYes项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID。
start_timeYes开始时间时间戳,毫秒时间,最多支持30天范围内的查询
search_listYes查询数据类型,字符串数组可多种搭配,只能在index/write/storage/basicTransfer/seniorTransfer/coldStorage中选填
resource_typeYes资源类型,log_group / log_stream / tenant

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 supplied, so the description carries the full behavioral burden and falls well short. It does not say whether the call is read-only, what the response contains, or how resource_type=tenant differs from log_group/log_stream. Only the core 'count top-n traffic' behavior is conveyed.

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?

It is a single short sentence with no wasted words and the key concept front-loaded. The brevity is efficient, though it borders on under-specification rather than tightness.

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 nine-parameter, fully-required tool with a nested filter object, no annotations, and no output schema, a one-line description leaves major gaps. It should at minimum explain resource_type semantics, the 30-day window constraint, and what the ranking returns.

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 every one of the nine parameters (topn range 1-100, sort_by enum, time window, filter object, resource_type) is already documented in the schema. The description adds nothing beyond the schema's own field documentation, so the baseline 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?

The description states a specific verb and resource: count (统计) the top-n traffic (流量) for log groups or log streams. An agent can tell it is a top-n ranking query rather than a raw listing. It does not, however, distinguish itself from the sibling lts__ListTimeLineTrafficStatistics, which is also a traffic-statistics tool.

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_id acquisition, the 30-day window), and no named alternative. The closest sibling, lts__ListTimeLineTrafficStatistics, is never referenced, so the agent must guess which traffic tool to call.

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