Skip to main content
Glama

cfw__UpdateAdvancedIpsRule

Update an advanced IPS rule in Huawei Cloud CFW to adjust its action, status, rule type, or protected object for firewall traffic control.

Instructions

[CFW] 创建频率ips规则

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

Input Schema

NameRequiredDescriptionDefault
paramNo包含特殊参数的JSON字符串
actionNo动作:0表示仅记录日志、1表示拦截session、2表示拦截ip
statusNo
object_idNo防护对象id
project_idYes项目ID,可以从调API处获取,也可以从控制台获取。可通过[项目ID获取方式](cfw_02_0015.xml)获取
ips_rule_idNo高级ips规则id
ips_rule_typeNoips规则类型:0表示敏感目录扫描、1表示反弹xshell
fw_instance_idNo防火墙ID,可通过[防火墙ID获取方式](cfw_02_0028.xml)获取
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

D1.7/5.0
Behavior1/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, yet it discloses nothing: not that this is a mutating write operation, not what requires project_id/fw_instance_id authorization, not what existing rule settings are overwritten, and not whether changes are reversible. For a mutation tool with zero annotation coverage this is a critical 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?

It is short with no wasted words, but this is under-specification rather than conciseness: a single seven-character phrase for a 9-parameter mutation tool. Nothing is front-loaded because there is essentially no content.

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?

A 9-parameter write tool with no annotations, no output schema, and a one-phrase description leaves the agent without the information needed to invoke it safely or correctly. The only usable context comes from the input schema, which the description does nothing to frame.

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 89%, so the schema already explains action (log/block session/block ip), status, ips_rule_type, object_id, project_id, and firewall/enterprise project IDs. The description adds no meaning beyond that — it does not clarify how 'param' (the JSON-string catch-all) should be populated or how ips_rule_id interacts with the type fields — but the baseline of 3 applies given the high schema coverage.

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 says '[CFW] 创建频率ips规则' (create frequency ips rule), naming the resource (ips rule) and a verb (create), but the tool is named UpdateAdvancedIpsRule — the verb conflicts with the tool name, and 'frequency' does not map to any schema parameter. An agent cannot reliably tell whether this creates, modifies, or does something else, nor how it differs from siblings like cfw__UpdateAclRule or cfw__ChangeIpsRuleMode.

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, no exclusions, and no named alternative among the many sibling rule-manipulation tools (ChangeIpsRuleMode, ChangeIpsSwitchStatus, ListIpsRules, UpdateAclRule). The description gives the agent nothing to route on.

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