Skip to main content
Glama

hss__ListClusterAuditLogs

Retrieve Kubernetes cluster audit logs by cluster ID and time range, with filters for verb, host, IP, and pagination to review cluster activity and security events.

Instructions

[HSS] 查询k8s集群审计日志列表

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": {
      "cluster_id": "<cluster_id>",
      "end_time": "<end_time>",
      "limit": "<limit>",
      "offset": "<offset>",
      "project_id": "<project_id>",
      "start_time": "<start_time>"
    },
    "name": "hss__ListClusterAuditLogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
verbNo审计日志对应的动作,包含以下几种:
limitYes每页显示个数,默认为10
offsetYes偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0
host_idNo主机id
host_ipNo主机ip
end_timeYes查询日志范围的最大时间
line_numNo查询cce集群日志时需要传的分页行号
host_nameNo主机名称
cluster_idYes集群id
project_idYes项目ID
start_timeYes查询日志范围的最小时间
cluster_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 provided, so the description carries the full burden. It says nothing about permissions, pagination behavior (though limit/offset exist), result ordering, retention window, or whether the query can be expensive. Only the one-line purpose is disclosed.

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?

Very short and front-loaded, but it is under-specified rather than concise; the single sentence leaves no room for context or usage detail given a 13-parameter tool.

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?

A 13-parameter list tool including required time range, project id, cluster id, and pagination deserves more than a one-line purpose statement. No output schema exists, and no annotations exist, so remaining behavioral and usage gaps are entirely unaddressed.

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 13 parameters are already documented, meeting the baseline of 3. The description adds nothing about parameter semantics, though the schema itself does the heavy lifting.

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?

Description states a specific verb (查询/list) and resource (k8s集群审计日志) with scope limited to cluster audit logs. It distinguishes from sibling hss__ListClusterEventLogs only implicitly by the word 审计 (audit) vs 事件 (event); no explicit differentiation is given.

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?

No when-to-use guidance, no mention of alternatives such as ListClusterEventLogs, and no prerequisites (e.g., cluster_id needed, time range required). The agent must infer usage from name and required parameters alone.

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