Skip to main content
Glama

cfw__UpdateAntiVirusSwitch

Enable or disable anti-virus protection for a specified Cloud Firewall protected object by updating its anti-virus switch status.

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__UpdateAntiVirusSwitch"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/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 burden of behavioral disclosure, yet it only says the switch is modified. It does not say whether the change requires specific permissions, whether it takes effect immediately, whether it is reversible, or what happens to hosts with protection already disabled. The description does not contradict any annotations, but it adds no behavioral context.

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 description is a single short phrase with no wasted framing, so it is concise, but its brevity comes at the cost of under-specification rather than efficiency. There is no structure beyond a bracketed service tag and a noun phrase.

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 four parameters, no annotations, and no output schema, the definition says almost nothing an agent needs before changing anti-virus protection. The schema covers the parameters well, but the behavioral and usage dimensions are entirely 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 four parameters (object_id, project_id, anti_virus_status, enterprise_project_id) are documented in the schema itself, and the description adds no further detail about parameter meaning. With the schema providing full coverage, this meets the baseline of 3, though the description does nothing to explain the 0/1 semantics of anti_virus_status.

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 "[CFW] 修改反病毒开关" is essentially a direct translation of the tool name UpdateAntiVirusSwitch, so it restates the name rather than explaining what the operation does. It never says what the switch controls (enabling or disabling anti-virus protection) or how this differs from sibling cfw__UpdateAntiVirusRule, which is the closest write counterpart.

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?

The description contains no guidance on when to use this tool rather than cfw__ShowAntiVirusSwitch for reading state or cfw__UpdateAntiVirusRule for changing rules. The only latent hint at usage comes from the verb "修改" (modify), and nothing states prerequisites, permissions, or exclusions.

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