Skip to main content
Glama

hss__ListSwrImageRepository

Lists images in SWR image repositories for Huawei Cloud HSS with filters for namespace, image, scan status, vulnerabilities, and timestamps. Use it to audit container images before syncing updates.

Instructions

[HSS] 查询swr镜像仓库镜像列表,如果需要从swr同步最新镜像,需要先调用“从swr同步镜像”接口

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": {
      "image_type": "<image_type>",
      "project_id": "<project_id>"
    },
    "name": "hss__ListSwrImageRepository"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo每页显示数量
offsetNo偏移量:指定返回记录的开始位置
has_vulNo是否存在软件漏洞
namespaceNo组织名称
image_nameNo镜像名称
image_sizeNo镜像大小
image_typeYes镜像类型,包含如下:
project_idYes项目ID
instance_idNo企业仓库实例ID,swr共享版无需使用该参数
scan_statusNo扫描状态,包含如下:
image_versionNo镜像版本
instance_nameNo企业镜像实例名称
latest_versionNo仅关注最新版本镜像
has_malicious_fileNo是否存在恶意文件
has_unsafe_settingNo是否存在基线检查
end_latest_scan_timeNo最近一次扫描完成时间结束日期,时间单位 毫秒(ms)
enterprise_project_idNo主机所属的企业项目ID。0
end_latest_update_timeNo创建时间结束日期,时间单位 毫秒(ms)
start_latest_scan_timeNo最近一次扫描完成时间开始日期,时间单位 毫秒(ms)
start_latest_update_timeNo创建时间开始日期,时间单位 毫秒(ms)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/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. It does disclose a non-obvious trait beyond the schema — that results reflect previously synced data and can be stale until a sync is run — which is genuinely useful. It says nothing about permissions, result volume, or how pagination behaves across the 20 filter parameters.

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 compact sentence with the core purpose front-loaded and the sync prerequisite attached as a subordinate clause. Nothing is wasted, though the prerequisite could have been phrased as a distinct sentence for easier scanning.

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 a 20-parameter filtered list with no annotations and no output schema, the description covers the purpose and the one non-obvious workflow dependency. It leaves the agent unable to determine valid values for the required `image_type` (and the similarly truncated `scan_status`), which is a real gap at invocation time.

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 nearly every parameter is documented in the schema and the baseline of 3 applies. The description adds no parameter-level meaning, and notably does not compensate for the required `image_type` parameter whose schema text is truncated ('包含如下:') with no enumerated values.

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: querying the image list of an SWR image repository (查询swr镜像仓库镜像列表), and scopes it to the HSS product tag. It is distinguishable from mutation siblings such as RunImageSynchronize or BatchScanSwrImage, though it does not explicitly contrast with read-oriented siblings like ListImageLocal or ListImageVulnerabilities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one concrete usage rule: if fresh images from SWR are needed, the 'sync image from SWR' operation must be invoked first — effectively a sequencing prerequisite. However, there is no guidance on when to prefer this tool over other image-listing tools, and no statement of when not to use it.

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