Skip to main content
Glama

waf__DeletePolicy

Deletes a WAF protection policy; if the policy is in use, first unbind its domains before deletion.

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

Input Schema

NameRequiredDescriptionDefault
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

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden. It does disclose the destructive nature and the important dependency that in-use policies cannot be deleted until domain bindings are released, which is genuinely useful. It does not say whether deletion is irreversible, what permissions are required, or what happens to rules attached to the policy.

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?

One compact sentence with the action front-loaded and the caveat immediately after it; nothing is redundant. It is arguably a little terse for a destructive operation, but no wording is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter delete tool with no output schema and no annotations, the definition covers the main operational trap — the domain-binding prerequisite — which is the piece an agent most needs before calling. Remaining gaps (irreversibility, side effects on attached rules) are modest but real.

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 each parameter already documents its own source (ListPolicy for policy_id, the console credentials page for project_id, ListEnterpriseProject for enterprise_project_id). The description adds no further meaning about the 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 states a specific verb plus resource — delete a WAF protection policy (删除防护策略) — and the [WAF] tag scopes it against same-named siblings like aad__DeletePolicy or cbr__DeletePolicy. It is clear what the tool does, though it does not explicitly name a sibling alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete precondition for use: if the policy is still bound to domains, the bindings must be removed first (解除域名与策略的绑定关系). That is real when-to-use guidance, but there is no statement about when not to delete or which sibling handles the unbinding step.

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