Skip to main content
Glama

waf__CreateIgnoreRule

Creates a WAF global whitelist or false-positive masking rule so specified request conditions are ignored for chosen domains, policies, and rule IDs.

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>"
    },
    "name": "waf__CreateIgnoreRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes固定值为1,代表v2版本误报屏蔽规则,v1版本仅用于兼容旧版本,不支持创建
ruleYes需要屏蔽的规则,可屏蔽一个或者多个,屏蔽多个时使用半角符;分隔
domainYes防护域名或防护网站,数组长度为0时,代表规则对全部域名或防护网站生效。当防护域名的接入模式为云模式-ELB接入时,该参数需以<域名>:<id>格式填写(如www.example.com:id),若域名绑定的负载均衡器(ELB)下所有监听器都接入WAF防护,填入的id为负载均衡器(ELB)id,否则填入的id为指定监听器id;可在WAF控制台域名详情页查询与该域名绑定的ELB实例id,在ELB侧监听器页签下查询其监听器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.6/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, and it discloses nothing beyond the intent to create. It does not say what the rule takes effect against (traffic bypassing WAF detection), whether creation is reversible, whether duplicate rules are rejected, what permissions or policy state are required, or what the response contains. For a security-sensitive mutation tool that alters WAF filtering behavior, this is a serious omission.

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?

One short sentence with a tag prefix and zero filler, so nothing is wasted, but the brevity reflects under-specification rather than disciplined editing. There is no front-loaded statement of effect or scope beyond the single 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 9-parameter, 6-required mutation tool with nested objects, enum-less strings, and no annotations or output schema, the description should at minimum state the effect of the rule and the need to supply a valid policy_id and well-formed cascading conditions. The rich schema compensates for parameter detail, but the behavioral and lifecycle context is essentially 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% and the parameter docs are genuinely detailed — the mode/version constraint, the domain array semantics including the ELB <domain>:<id> format, the cascading condition structure, and the pointer to ListPolicy/ListEnterpriseProject are all in the schema. The description adds no parameter meaning of its own, so the baseline 3 applies; the '全局' wording does not explain the empty-domain-array convention that actually defines global scope.

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 in '创建...规则' and names the object precisely: '全局白名单(原误报屏蔽)规则'. The parenthetical '原误报屏蔽' usefully maps the modern whitelist concept onto the legacy false-positive-masking name, which matches the CreateIgnoreRule tool name. It stops short of distinguishing itself from sibling rule-creation tools such as CreateWhiteblackipRule, which an agent could easily confuse with a whitelist tool.

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, no prerequisites, and no mention of alternatives such as UpdateIgnoreRule for existing rules or ListIgnoreRule for inspection. The agent is left to infer from the name alone that this is the creation path of the ignore-rule lifecycle.

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