Skip to main content
Glama

waf__UpdateAnticrawlerRuleType

Updates the protection mode for JS script anticrawler rules; call before creating rules to specify included or excluded paths.

Instructions

[WAF] 更新JS脚本反爬虫规则防护模式,在创建JS脚本反爬虫规则前,需要调用该接口指定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": {
      "anticrawler_type": "<anticrawler_type>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>"
    },
    "name": "waf__UpdateAnticrawlerRuleType"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_idYes防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
anticrawler_typeYesJS脚本反爬虫规则类型,指定防护路径:anticrawler_specific_url 排除防护路径:anticrawler_except_url
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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose meaningful ordering behavior (must run before rule creation), which is real value, but it says nothing about whether the update is idempotent, what happens to existing rules that reference the old mode, or what is returned.

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?

Two compact clauses with no filler, and the purpose is front-loaded ahead of the prerequisite. The bracketed '[WAF]' tag and the repeated phrase 'JS脚本反爬虫规则防护模式' are mildly redundant but do not obscure the message.

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

Completeness3/5

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

For a mutation tool with no annotations, no output schema and four fully documented parameters, the description covers purpose and the key prerequisite. It is adequate but thin: an agent still lacks any sense of side effects, authorization needs, or what happens when the mode changes on an existing policy.

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%: policy_id, project_id, anticrawler_type and enterprise_project_id are each documented in the schema, including the enum-like values for anticrawler_type. The description adds no parameter-level meaning, 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 uses a specific verb and resource: updating the JS-script anticrawler rule 'protection mode' (规则防护模式). It is distinguishable from the sibling waf__UpdateAnticrawlerRule in that it targets the rule type/mode rather than the rule body, though the description never names that sibling or clarifies the boundary between 'type' and 'mode', which the schema calls 'anticrawler_specific_url' vs 'anticrawler_except_url'.

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 an explicit temporal prerequisite: this call must be made before creating a JS-script anticrawler rule, which tells the agent when in a workflow this belongs. It stops short of naming alternatives or saying when not to use it (e.g. how it relates to waf__CreateAnticrawlerRule or updating an existing rule).

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