Skip to main content
Glama

waf__DeleteAnticrawlerRule

Delete a JavaScript anti-crawler protection rule by rule, policy, and project IDs to remove outdated bot-mitigation controls from WAF.

Instructions

[WAF] 删除JS脚本反爬虫防护规则

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__DeleteAnticrawlerRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idYes规则id
policy_idYes防护策略id,通过指定防护策略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 provided, so the description bears the full burden. It says '删除' (delete) which implies a destructive, likely irreversible mutation, but it doesn't disclose whether the deletion is permanent, whether confirmation is needed, permission requirements, or side effects. For a destructive tool with zero annotations, this is a significant gap.

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 concise sentence with the 'WAF' prefix; front-loaded and no wasted words. It's arguably too terse, but conciseness itself is good.

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 mutation with no annotations and no output schema, the description should at least state irreversibility/permanence and any prerequisite. The parameter schema is rich, but the behavioral side is empty, leaving an agent without the safety context needed to invoke a delete correctly.

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 the schema already documents all four parameters including how to obtain policy_id and project_id via ListPolicy and EPS ListEnterpriseProject. The description adds nothing about parameters. Baseline 3 applies when the schema does the heavy lifting.

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+resource: delete a JS-script anticrawler protection rule under WAF. It's clear and differentiates from sibling create/update/show/list anticrawler tools by the verb 'delete' and the specific rule type. It doesn't explicitly name alternatives, but the name+description combination is unambiguous.

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's no when-to-use guidance, no prerequisites, no mention of what happens to the rule after deletion or whether it can be undone, and no pointer to sibling tools like ListAnticrawlerRules to find rule_id. The description is just a one-line purpose statement.

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