Skip to main content
Glama

cfw__UpdateAclRuleOrder

Set the priority order of a Cloud Firewall ACL protection rule by moving it to the top, bottom, or after a target rule.

Instructions

[CFW] ACL防护规则优先级设置

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

Input Schema

NameRequiredDescriptionDefault
topNo是否置顶,0代表非置顶,1代表置顶
bottomNo是否置底,0代表非置底,1代表置底
project_idYes项目ID, 可以从调API处获取,也可以从控制台获取。[项目ID获取方式](cfw_02_0015.xml)
acl_rule_idYes规则id,可通过[查询防护规则接口](ListAclRules.xml)查询获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。
dest_rule_idNo目标规则id,添加规则位于此规则之后,非置顶时不能为空,置顶时为空,目标规则id可以通过[查询防护规则接口](ListAclRules.xml)获得,通过返回值中的data.records.rule_id(.表示各对象之间层级的区分)获得。
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

C2.5/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 entire burden, and it discloses almost nothing: no indication that this mutates persisted rule order, whether the change takes effect on live traffic immediately, whether it requires the enterprise project/firewall instance context, or what happens on conflicting dest_rule_id values. Only the bare fact of a mutation is conveyed. This is a significant shortfall for an unannotated write tool.

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 zero wasted words and the resource is front-loaded via the [CFW] prefix. However, this is under-specification masquerading as brevity — there is ample room to add one clarifying sentence about ordering behavior without bloat. Short, but not productively structured.

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?

This is a 7-parameter mutation tool with no annotations and no output schema, and the definition supplies a five-word phrase. An agent gets no information about the three distinct ordering modes, prerequisites, or effects of the call. Substantially incomplete for the tool's complexity, though the rich schema descriptions partially limit the damage.

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?

The input schema documents every one of the 7 parameters at 100% coverage, including the top/bottom/dest_rule_id conditional semantics ("非置顶时不能为空,置顶时为空"), so the schema already does the heavy lifting. The description adds no additional parameter meaning whatsoever. Baseline 3 applies when schema coverage is complete and the description neither helps nor harms.

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?

"[CFW] ACL防护规则优先级设置" names the resource (ACL rule) and implies a reordering/priority operation, so an agent can roughly infer it changes rule ordering. But it is a noun phrase rather than a verb+resource statement, and it never distinguishes itself from the closely named sibling cfw__UpdateAclRule, which presumably edits rule content rather than order. Purpose is guessable but not stated with the precision needed to pick between the two.

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 when-to-use statement, no mention of the mutual exclusivity between top/bottom/dest_rule_id modes, and no pointer to cfw__UpdateAclRule for non-ordering edits. Only the most obvious inference (call this when you want to move a rule) is available. With a sibling literally named UpdateAclRule, the absence of any routing guidance is a real gap.

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