Skip to main content
Glama

waf__UpdateAnticrawlerRule

Update a Web Application Firewall JS script anti-crawler rule by setting its name, path type, match conditions, and priority for a specified protection policy.

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": {
      "conditions": "<conditions>",
      "name": "<name>",
      "policy_id": "<policy_id>",
      "priority": "<priority>",
      "project_id": "<project_id>",
      "rule_id": "<rule_id>",
      "type": "<type>"
    },
    "name": "waf__UpdateAnticrawlerRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes规则名称
typeYesJS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
rule_idYes规则id
priorityYes执行该规则的优先级,值越小,优先级越高,值相同时,规则创建时间早,优先级越高。取值范围:0到1000。
policy_idYes防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
conditionsYes匹配条件列表
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.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing beyond the bare operation. It does not state required permissions, whether unspecified fields are cleared, whether an existing rule must first be fetched, or what the caller gets back after a mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single bracketed phrase is not bloated, but under-specification is not conciseness. For an eight-parameter mutation tool with seven required fields, one tag-prefixed line gives the agent almost nothing to front-load.

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 a required-heavy write operation, no annotations, and no output schema, the description should explain preconditions, the effect of the update, and the meaning of a full-replacement call. None of that is present, so an agent cannot safely construct the call from the description alone.

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 every parameter, including the nested conditions object with its logic_operation enum values, is already documented in the schema. The description adds no meaning on top of that, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a verb+resource ("update JS script anticrawler protection rule"), but it is essentially a translation of the tool name with the word "JS脚本" added. It does not say what the rule actually controls or how it differs from UpdateAnticrawlerRuleType or CreateAnticrawlerRule, so the agent gets only a generic sense of purpose.

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 the sibling operations an agent must choose among (Create, Delete, Show, List, UpdateAnticrawlerRuleType). Whether this performs a full replacement or a partial patch is left entirely to inference.

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