Skip to main content
Glama

hss__BatchScanSwrImage

Triggers batch vulnerability scans for Huawei Cloud SWR container images, enabling scans of selected images or all images in a project.

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

Input Schema

NameRequiredDescriptionDefault
namespaceNo组织名称
repo_typeNo仓库类型,现阶段接入了swr镜像仓库,包含如下:
image_nameNo镜像名称
image_sizeNo镜像大小
image_typeYes镜像类型,包含如下:
project_idYes项目ID
operate_allNo若为true全量查询,可筛选条件全部查询,若image_info_list为空,则必填
scan_statusNo扫描状态,包含如下:
image_versionNo镜像版本
latest_versionNo仅关注最新版本镜像
image_info_listNo要扫描的镜像信息列表,operate_all参数为false时为必填
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

D1.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 and largely fails: it implies an action that kicks off scanning but never states whether the call creates an asynchronous task, how long results take, whether it is idempotent, what permissions or enterprise-project scope are required, or what happens when operate_all=true sweeps the whole repository. The single verb 'scan' is the only behavioral signal offered.

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

Conciseness2/5

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

The single phrase is short but not efficiently structured: there is no front-loaded statement of outcome, no separation of what the tool does from how to parameterize it. This is under-specification rather than conciseness, and nothing in the sentence earns its place beyond naming the domain.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, scan-triggering tool with no annotations and no output schema, the description leaves out everything an agent needs: side effects, task semantics, the operate_all vs. image_info_list requirement, and any indication of what the call returns. It is not remotely adequate 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 the 16 parameters—including the mutually exclusive operate_all / image_info_list pattern and the millisecond time-range filters—are already documented in the schema. The description contributes zero additional parameter meaning, but the baseline of 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description "[HSS] 镜像仓库镜像批量扫描" is essentially a Chinese restatement of the tool name BatchScanSwrImage, adding only the expansion that SWR means an image repository. It gives no scope detail such as which tenants/namespaces are affected or how the batch is delimited, so an agent learns nothing it could not infer from the identifier itself.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives among the many siblings (e.g., ListSwrImageRepository for listing images vs. this tool for initiating scans). Nothing tells the agent what condition should route it here rather than to CreateVulnerabilityScanTask or CreateGlobalAssetScanTask.

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