Skip to main content
Glama

aom__ListLogItems

Queries paginated log content across clusters, IPs, applications, namespaces, pods, or files to retrieve relevant entries within a specified time range.

Instructions

[AOM] 该接口用于查询不同维度(例如集群、IP、应用等)下的日志内容,支持分页查询。

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": {
      "category": "<category>",
      "endTime": "<endTime>",
      "project_id": "<project_id>",
      "searchKey": "<searchKey>",
      "startTime": "<startTime>",
      "type": "<type>"
    },
    "name": "aom__ListLogItems"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes表示此次查询为分页查询,第一次查询时不需要此参数,后续分页查询时需要使用。
isDescNo标识按照lineNum升序查询还是降序查询。
endTimeYes搜索结束时间(UTC时间,毫秒级)。
keyWordNo1.支持关键词精确搜索。关键词指相邻两个分词符之间的单词。
lineNumNo日志单行序列号第一次查询时不需要此参数,后续分页查询时需要使用可从上次查询的返回信息中获取.
categoryYes取值范围 app_log,node _log,custom_log 日志类型字段:app_log:应用日志 node_log:主机日志 custom_log:自定义配置路径日志。
searchKeyYes日志过滤条件集合,不同日志来源所需字段不同。
startTimeYes搜索起始时间(UTC时间,毫秒级)。
hideSyslogNo取值范围 0、1 。搜索时是否隐藏系统日志,默认0为隐藏1为显示。
project_idYes租户从IAM申请到的projectid,一般为32位字符串。
pageSize/sizeNo表示每次查询的日志条数不填时默认为5000,建议您设置为100。

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, yet it only says the query supports pagination — a fact already encoded in the type/lineNum schema parameters. It says nothing about required permissions, default result size (5000 per pageSize description), whether isDesc/hideSyslog change output, or what the response contains, which matters for an 11-parameter read 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 no filler, and the pagination caveat is placed at the end. It is efficient, though the brevity reflects under-specification rather than disciplined editing.

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 an 11-parameter, 6-required tool with a nested searchKey object and no annotations or output schema, one sentence is thin. The rich schema compensates for parameter detail, but the description leaves the paging workflow (first call without type/lineNum, subsequent calls with them), the default pageSize behavior, and the returned log fields entirely to inference.

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 parameter meaning is largely handled by the schema and the baseline is 3. The description adds a little by naming the filtering dimensions (cluster, IP, application) that map onto the nested searchKey object, but it supplies no syntax, defaults, or paging mechanics beyond that.

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 names a specific verb (查询/query) and resource (日志内容/log content under multiple dimensions), and notes pagination support. It is clear what the tool does, but it does not distinguish itself from the many sibling log-listing tools (lts__ListLogContext, das__ListTopSlowLog, dws__ListAuditLog, etc.), so an agent cannot route between them from this text 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 statement of when to use this tool versus the numerous sibling log query tools, no prerequisites (project_id, cluster access), and no exclusions. The only implied usage cue is that it is a dimensional log query with paging, which is generic across the log family.

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