Skip to main content
Glama

waf__DeleteIgnoreRule

Deletes a WAF false-positive masking rule from a protection policy, removing global whitelist exceptions that no longer apply.

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

Input Schema

NameRequiredDescriptionDefault
rule_idYes误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
policy_idYes防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
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 bears the full behavioral burden, yet it only states that a rule is deleted. It does not say whether the deletion is permanent, whether it affects traffic protection immediately, what permissions or enterprise-project scope are required, or what happens to a currently enabled rule.

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?

The definition is a single short sentence that front-loads the action and resource with no filler. It is efficient, though the bracketed service prefix is low-value text and there is no structural hint about consequences.

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 destructive three-required-parameter mutation tool with no annotations and no output schema, the description omits outcome and safety information an agent needs before calling it. The schema covers parameter formats well, but the definition as a whole does not prepare the agent for the consequences of deletion.

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%, with all four parameters documented in the schema, including how to obtain rule_id, policy_id, project_id, and enterprise_project_id. The description contributes nothing additional about parameters, so the baseline of 3 applies.

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 (删除/delete) and a clearly identified resource (全局白名单/原误报屏蔽防护规则), which lets an agent separate it from the Create/List/Show/Update IgnoreRule siblings. It is clear but terse, with the '[WAF]' service tag occupying part of the text rather than adding distinguishing detail.

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 about when to use this tool versus alternatives, no warning that deletion is irreversible, and no mention of prerequisites such as confirming the rule via ListIgnoreRule or ShowIgnoreRule first. The agent must infer usage entirely from the name and description.

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