Skip to main content
Glama

waf__UpdateWhiteblackipRule

Update a WAF blacklist or whitelist protection rule to change its IP addresses or ranges, protection action, and effective time. Use it to adjust access control without recreating the rule.

Instructions

[WAF] 更新黑白名单防护规则,可以更新ip/ip段以及防护动作等信息

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": {
      "name": "<name>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>",
      "rule_id": "<rule_id>",
      "white": "<white>"
    },
    "name": "waf__UpdateWhiteblackipRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
addrNo黑白名单ip地址,需要输入标准的ip地址或地址段,例如:42.123.120.66或42.123.120.0/16
nameYes黑白名单规则名称
startNo规则生效开始时间,生效模式为自定义时,此字段才有效,请输入时间戳
whiteYes防护动作:
rule_idYes黑白名单规则id,您可以调用查询黑白名单规则列表(ListWhiteblackipRule)获取黑白名单规则id
terminalNo规则生效结束时间,生效模式为自定义时,此字段才有效,请输入时间戳
policy_idYes防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
time_modeNo生效模式,默认为permanent(立即生效),创建自定义生效规则时请输入:customize
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
descriptionNo黑白名单规则描述
ip_group_idNo创建的Ip地址组id,该参数与addr参数使用一个即可;Ip地址组可在控制台中对象管理->地址组管理中添加。
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 full behavioral burden and does not meet it. For a mutation with five required parameters (name, policy_id, project_id, rule_id, white), it never says whether the update is a full replacement or a partial merge, what happens to omitted optional fields like start/terminal, or what permissions are needed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the resource and the mutable fields front-loaded and no filler. It is efficient, though so terse that efficiency shades into under-specification.

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?

With 12 parameters, 5 of them required, no annotations, and no output schema, the description should do much more than one clause. It leaves the full-vs-partial update semantics, error behavior, and permission requirements entirely unaddressed, which is a serious gap for a destructive mutation tool.

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 every one of the 12 parameters is already documented, giving a baseline of 3. The description only re-mentions addr and white ('ip/ip段以及防护动作'), adding no semantics beyond the schema — notably nothing about the interplay between addr and ip_group_id or the meaning of the white action codes.

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 description gives a specific verb+resource pair (更新/update, 黑白名单防护规则/white-blacklist rule) and names the mutable fields (ip/ip段, 防护动作). It implicitly distinguishes itself from the Create and List siblings by the verb, though it never states that contrast explicitly.

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: nothing says when to update an existing rule versus creating a new one via waf__CreateWhiteblackipRule, nor any prerequisite such as needing a rule_id first. An agent must infer usage entirely from the verb.

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