Skip to main content
Glama

hss__ListContainerCmdLogs

Queries command execution logs from containers to support auditing and investigation, with filters for host, cluster, container, command, path, and time range.

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__ListContainerCmdLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmdNo运行的命令行
pathNo命令行对应的进程路径
limitYes每页显示个数,默认为10
offsetYes偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
host_idNo产生日志的容器所在主机的id
host_ipNo产生日志的容器所在主机的ip
end_timeNo查询日志范围的最大时间
host_nameNo产生日志的容器所在主机的名称
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.8/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 behavioral burden, yet it only says 'query'. It does not state that this is a read-only operation, whether any authorization or tenant scope (project_id) is needed, that results are paginated (limit/offset with defaults), or that time-range filtering is available. For a 15-parameter log query with zero annotation coverage this is a significant gap.

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 front-loaded clause with no filler beyond the bracketed '[HSS]' service tag, so it is certainly concise. However, for a tool with 15 parameters and no annotations, this level of terseness reads as 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?

The tool is complex: 15 parameters, three of them required (limit, offset, project_id), no annotations, and no output schema. The description supplies none of the scoping, pagination, or safety context an agent needs to invoke it correctly, leaving it substantially incomplete relative to the tool's 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?

Schema description coverage is 100%, so every parameter including cmd, path, host_id, container_id, and the time range is documented in the schema itself. The description adds no meaning beyond that, which is acceptable at the baseline 3 but represents zero marginal value.

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 and resource ('查询' + '容器内运行的命令列表'), so an agent knows it retrieves command-execution records from containers, not generic container logs. It does not distinguish itself from close siblings like hss__ListContainerLogs or hss__ListContainerImageLogs, which is the only thing keeping it from a 5.

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, when not to, or which sibling to pick for container logs versus image logs versus cluster audit logs. The agent must infer usage purely from the one-line purpose, and the presence of ten-plus similar log-listing siblings makes that inference error-prone.

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