Skip to main content
Glama

waf__UpdateIgnoreRule

Updates a WAF global whitelist (false-positive shielding) rule to change which request conditions are ignored for specified domains and policies.

Instructions

[WAF] 更新全局白名单(原误报屏蔽)防护规则

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": {
      "conditions": "<conditions>",
      "domain": "<domain>",
      "mode": "<mode>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>",
      "rule": "<rule>",
      "rule_id": "<rule_id>"
    },
    "name": "waf__UpdateIgnoreRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes固定值为1,代表v2版本误报屏蔽规则,v1版本仅用于兼容旧版本,不支持创建
ruleYes需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔
domainYes防护域名或防护网站,数组长度为0时,代表规则对全部域名或防护网站生效
rule_idYes误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
advancedNo高级配置项
policy_idYes防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
conditionsYes条件列表
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
descriptionNo屏蔽规则描述
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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. It says 'update' but discloses nothing about what is overwritten, whether required fields like mode/rule/conditions fully replace existing configuration, permission requirements, or side effects on live traffic filtering — significant gaps for a security-policy mutation.

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?

It is a single front-loaded sentence with no wasted words, but for a 10-parameter nested mutation tool it is too terse to be considered appropriately sized — brevity here reflects under-specification rather than discipline.

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?

Given 7 required parameters, nested condition objects, no annotations, and no output schema, the description is far too thin. It does not explain the update semantics (replace vs. merge), the v2/v1 mode constraint, or what a successful response means, leaving the agent dependent entirely on schema text.

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%, including detailed notes on mode, rule separators, domain array semantics, and the complex cascading conditions structure, so the baseline is 3. The description itself adds no parameter meaning beyond the schema.

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 single line states a specific verb (更新/update) and resource (全局白名单/误报屏蔽防护规则), which distinguishes it from siblings named Create/Delete/List/ShowIgnoreRule. The parenthetical '(原误报屏蔽)' clarifies legacy naming, though it adds mild ambiguity about whether two rule families are involved.

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 guidance on when to use this versus CreateIgnoreRule (new rule) or ListIgnoreRule/ShowIgnoreRule (inspect). No prerequisites are stated, such as needing an existing rule_id or policy_id, and no when-not-to-use conditions are given.

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