Skip to main content
Glama

hss__ListContainerLogs

Query container logs by pod, namespace, cluster, host, container, time range, and content to troubleshoot workloads and security events.

Instructions

[HSS] 查询容器日志列表

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": {
      "limit": "<limit>",
      "offset": "<offset>",
      "project_id": "<project_id>"
    },
    "name": "hss__ListContainerLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes每页显示个数,默认为10
offsetYes偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
pod_idNo产生日志的容器所属pod的id
pod_ipNo产生日志的容器所属pod的ip
contentNo日志内容
host_ipNo产生日志的容器所在主机的ip
end_timeNo查询日志范围的最大时间
line_numNo查询cce集群容器日志时需要传的分页行号
pod_nameNo产生日志的容器所属pod的名称
namespaceNo产生日志的容器所属的命名空间
cluster_idNo集群id
project_idYes租户项目ID
start_timeNo查询日志范围的最小时间
cluster_nameNo集群名称
container_idNo容器id
container_nameNo产生日志的容器名称
enterprise_project_idNo主机所属的企业项目ID。0

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 provided, so the description carries the full disclosure burden, and it says nothing about read-only semantics, pagination via limit/offset, time-range filtering requirements, or what a result row contains. The only behavioral signal is the word "List", which is inferred from the name rather than the text.

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

Conciseness3/5

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

It is a single short phrase with zero filler, so nothing is wasted, but there is no structure or front-loaded qualification beyond the bracketed product tag. Brevity here reflects under-specification rather than disciplined conciseness.

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 17-parameter log query with no annotations and no output schema, the description gives an agent almost nothing beyond the tool name. It does not explain required scoping (project_id, container_id, time range) or what the returned list represents, which is a major gap at this complexity.

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?

All 17 parameters have full schema descriptions, so the schema does the heavy lifting and a baseline of 3 applies. The description adds no extra meaning about how the filter parameters combine or how limit/offset and line_num interact for CCE pagination.

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 is a bare verb+resource pair ("查询容器日志列表") that identifies the object as container logs, but it never distinguishes this generic log listing from close siblings such as ListContainerCmdLogs or ListContainerImageLogs. An agent must read the schema to know which logs are being listed.

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 guidance on when to use this tool, preconditions (e.g., whether cluster_id or container_id is mandatory in practice), or which of the many log-listing siblings to prefer. The single phrase leaves all usage decisions to inference from the parameter names.

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