Skip to main content
Glama

aad__ModifyDomainWebSwitch

Toggles WEB basic protection and CC protection for a Huawei Cloud AAD domain, using domain and project IDs plus switch values to enable or disable each safeguard.

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": {
      "cc_switch": "<cc_switch>",
      "domain_id": "<domain_id>",
      "project_id": "<project_id>",
      "waf_switch": "<waf_switch>"
    },
    "name": "aad__ModifyDomainWebSwitch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cc_switchYes是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关
domain_idYes域名id
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
waf_switchYes是否开启WEB基础防护开关。0 - 开启, 1 - 关闭

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 supplied, so the description carries the full behavioral burden. It says nothing about required permissions, whether the change is reversible, what happens to the untouched switch, or that both parameters must be sent together, leaving the agent to infer everything about this mutation from the schema.

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?

The single short sentence is front-loaded with the verb and the two target switches and contains no filler. It is terse but appropriately sized for a narrow toggle tool, with only the '[AAD]' tag as mild overhead.

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?

This is a four-required-parameter mutation tool with no annotations and no output schema, so the description must cover effects and preconditions. It addresses only what is being toggled, not who can call it, side effects, or confirmation of state, which leaves material gaps for a write operation.

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 coverage is 100% and each parameter carries a description, including the unusual 0=enable / 1=disable convention and the dependency between the CC and WAF switches. The description only names the two switches it maps to, adding nothing beyond the structured schema, which is the expected baseline.

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 names a specific verb (修改/modify) and specific resources (domain WEB basic protection switch and CC protection switch), so an agent can tell it toggles two domain-level protection switches. It does not differentiate itself from related domain-management siblings such as aad__UpdateDomain, so it stops short of 5.

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 guidance on when to use this tool versus UpdateDomain or the other domain tools, no prerequisites, and no note about the coupled-constraint behavior (both switches are required on every call). Usage is only implied by the name and description.

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