Skip to main content
Glama

cfw__UpdateAntiVirusRule

Updates Cloud Firewall antivirus rules for a protected object by configuring scan protocols and actions such as observe, block, or disable.

Instructions

[CFW] 修改反病毒规则

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

Input Schema

NameRequiredDescriptionDefault
object_idNo防护对象ID
project_idYes项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
enterprise_project_idNo企业项目ID,用户根据组织规划企业项目,对应的ID为企业项目ID,可通过[如何获取企业项目ID](cfw_02_0027.xml)获取,用户未开启企业项目时为0
scan_protocol_configsNo扫描协议配置

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it discloses nothing: not whether changes are reversible, not whether existing configuration is overwritten, not permission or enterprise-project requirements, not rate limits or return behavior. For a mutation tool operating on security policy, this is a serious gap.

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 bracketed phrase is not verbose, but it is under-specified rather than concise. There is no front-loaded scope statement, no object identifier context, and no indication of what the modification affects.

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?

For a mutation tool with no annotations and no output schema, the description should explain the effect of the update and any required context (project/enterprise project/object IDs). It says none of this, leaving the agent entirely dependent on the input schema to understand the operation.

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 schema itself documents all four parameters, including the nested scan_protocol_configs action enum (0 observe / 1 block / 2 disable) and protocol_type. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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

Purpose3/5

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

The description gives a verb and resource ("修改反病毒规则" / modify anti-virus rule), which is more than a bare tautology, but it adds nothing the tool name cfw__UpdateAntiVirusRule doesn't already say. It makes no attempt to distinguish this from cfw__ShowAntiVirusRule or cfw__UpdateAntiVirusSwitch, leaving the agent to infer the difference from names alone.

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 when-to-use guidance, no preconditions, and no mention of alternatives. The only implied guidance is that this is the mutation counterpart to a show/read tool, which an agent must guess at. Nothing states when modifying a rule is appropriate versus creating or toggling one.

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