Skip to main content
Glama

waf__CreateAntiTamperRule

Creates a WAF anti-tamper rule to protect a specified URL on a hosted domain, applying it to a chosen protection policy.

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": {
      "hostname": "<hostname>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>",
      "url": "<url>"
    },
    "name": "waf__CreateAntiTamperRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes防篡改规则防护的url,需要填写标准的url格式,例如/admin/xxx或者/admin/*,以"*"号结尾代表路径前缀
hostnameYes防护网站,查询云模式防护域名列表(ListHost)接口获取防护域名,响应体中的的hostname字段
policy_idYes防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
descriptionNo规则描述
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 entire behavioral burden and discloses essentially nothing: it does not state that this is a write/mutation, whether it needs specific IAM permissions, quotas on the number of rules, idempotency, or what breaking a tamper rule could affect on live traffic.

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

Conciseness3/5

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

The single bracketed phrase is front-loaded and waste-free, but it is concise to the point of under-specification for a six-parameter mutation tool; brevity here costs more than it saves.

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?

The tool has 6 parameters (4 required), no annotations, and no output schema, so the description is the only place behavior could be explained. A one-line title-style phrase is insufficient for that complexity; only the unusually thorough input schema prevents a lower score.

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 each parameter (url, hostname, policy_id, project_id, description, enterprise_project_id) documented in detail, including how to obtain the IDs. The description adds no parameter meaning beyond the schema, which is the expected baseline 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.

Purpose3/5

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

The description gives a specific verb and resource ("创建防篡改规则" / create anti-tamper rule), so the agent knows the action and object. It offers nothing about what a tamper-proof rule protects against or how it differs from the many sibling create-rule tools (CreateCcRule, CreateCustomRule, CreateGeoipRule, etc.), leaving differentiation to the names alone.

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 prerequisite ordering, and no mention of the alternatives (e.g. ListAntitamperRule for inspection or the Update/Delete antitamper siblings). Usage is only implied by the verb "create".

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