Skip to main content
Glama

hss__ChangeAntivirusPolicy

Update a custom antivirus scan policy in Huawei Cloud HSS by modifying scan scope, file types, target hosts, schedule, and threat-handling actions.

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": {
      "action": "<action>",
      "file_types": "<file_types>",
      "host_ids": "<host_ids>",
      "policy_id": "<policy_id>",
      "policy_name": "<policy_name>",
      "project_id": "<project_id>",
      "start_type": "<start_type>",
      "whether_paid_task": "<whether_paid_task>"
    },
    "name": "hss__ChangeAntivirusPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes处置动作,包含如下:
host_idsYes策略管理主机列表
scan_dirNo扫描目录,多个用;分隔
policy_idYes策略ID
scan_hourNo扫描小时数(仅启动类型为period时有值)
scan_timeNo扫描时间戳,毫秒(仅启动类型为later时有值)
file_typesYes文件类型集合型,包含如下:
ignore_dirNo排除目录,多个用;分隔
project_idYes**参数解释**:
start_typeYes启动类型,包含如下:
policy_nameYes策略名称
scan_minuteNo扫描分钟数(仅启动类型为period时有值)
scan_periodNo启动类型,包含如下:
timezone_offsetNo时区偏移量(仅启动类型为period时有值,单位:分钟)
scan_period_dateNo扫描周期日期(1-28;扫描周期为week时,1-7代表周日至周六;扫描周期为month时,1-28代表每月1日到28日)
whether_paid_taskYes此次扫描任务是否消耗按次计费配额
enterprise_project_idNo**参数解释**: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. '编辑' implies mutation and '自定义' implies built-in policies may not be editable, which is a small amount of useful context, but nothing is said about permissions, whether the change is a full replace or a partial update, effects on in-flight scans, or reversibility.

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?

The single short phrase contains no waste and is front-loaded, but it is under-specified rather than concise. For a 17-parameter mutation tool, one sentence leaves too much unsaid.

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 17-parameter, 8-required mutation tool with no annotations and no output schema gets only a five-word description. The schema documents parameters well, but the behavioral and usage context an agent needs before invoking a policy edit is absent.

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 17 parameters are already documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 phrase '编辑自定义查杀策略' names a specific verb (edit) and resource (custom antivirus scan policy), enough to separate it from the Create/Delete/Change siblings by name. It stops short of explicitly contrasting with those siblings or stating the scope of the edit.

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 prerequisites, no mention of alternatives. The only implicit signal is that a policy_id is required, which hints at editing an existing policy, but nothing tells the agent when to pick this over CreateAntiVirusPolicy or ChangeVulScanPolicy.

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