Skip to main content
Glama

aad__AddWafWhiteIpRule

Creates IP blacklist or whitelist rules for a domain's web-CC protection policy, using IPs, region, and rule type to control access.

Instructions

[AAD] 防护策略web-cc黑白名单-创建黑白名单规则

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": {
      "domain_name": "<domain_name>",
      "ips": "<ips>",
      "overseas_type": "<overseas_type>",
      "type": "<type>"
    },
    "name": "aad__AddWafWhiteIpRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipsYes待添加ip/ip段
typeYes0-黑名单,1-白名单
domain_nameYes域名+端口组合,标准端口80/443无须加端口。
overseas_typeYes防护区域,0-大陆,1-海外

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/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 and does not meet it. It implies a mutation ('add/create') but says nothing about required permissions, idempotency, behavior when an IP already exists in the list, or whether it appends to or replaces the current rule set.

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 front-loaded clause with no filler or repetition. It is terse but structurally clean; the brevity is a completeness problem rather than a verbosity problem.

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 write tool with four required parameters, no annotations, and no output schema, one jargon line is insufficient. An agent gets no indication of side effects on existing rules, success/failure semantics, or how this differs from the many similar add-rule siblings.

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 of the four required parameters documented inline (ips, type 0-black/1-white, domain_name with port rules, overseas_type 0-mainland/1-overseas). The description adds no meaning beyond this, so the baseline 3 applies.

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 identifies a create operation on a black/white list rule under an AAD web-CC protection policy, which is more than a restatement of the name. However, it is compressed jargon that does not separate this tool from near-identical siblings such as aad__AddBlackWhiteIpList, aad__AddPolicyBlackAndWhiteIpList, and aad__AddWafWhiteIpRule itself, leaving the agent unsure which 'add' tool applies.

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 (e.g. whether the policy must exist first), and no mention of alternatives such as the ListWafWhiteIpRule or DeleteWafWhiteIpRule siblings that operate on the same resource. The agent must infer the usage context entirely.

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