Skip to main content
Glama

waf__CreatePremiumHost

Creates a dedicated-mode WAF protected domain in Huawei Cloud and configures origin servers, proxy settings, and an optional security 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>",
      "project_id": "<project_id>",
      "proxy": "<proxy>",
      "server": "<server>"
    },
    "name": "waf__CreatePremiumHost"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo添加云模式elb接入域名时,请输入elb-shared,否则不输入
proxyYes防护域名是否使用代理
serverYes防护域名的源站服务器配置信息
web_tagNo网站名称,对应WAF控制台域名详情中的网站名称
hostnameYes防护域名或IP(可带端口)
policyidNo防护域名初始绑定的防护策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
block_pageNo告警页面配置
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
descriptionNo防护域名备注
listener_idNo监听器id,可在ELB侧监听器页签下查询其id;不输入时,负载均衡器(ELB)下的所有监听器都将接入WAF防护,包括该ELB下未来新增的符合条件的监听器,添加云模式elb接入域名时,可考虑输入此项id
certificateidNo证书id,通过查询证书列表接口(ListCertificates)接口获取证书id
protocol_portNo业务端口,添加云模式elb接入域名时,此为必须输入的值(0 - 65535)
certificatenameNo证书名
loadbalancer_idNo负载均衡器(ELB)id,可以在ELB侧查询其id,添加云模式elb接入域名时,此为必须输入的值
forward_header_mapNo字段转发配置,WAF会将添加的字段插到header中,转给源站;Key不能跟nginx原生字段重复。Value支持的值包括:
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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. It only says 'create' and does not disclose permissions, side effects, idempotency, or what happens on duplicate hostnames. For a 16-parameter mutation tool this is a major gap.

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 description is a single short phrase, front-loaded and waste-free. However, for a tool with 16 parameters and nested objects, it is under-specified rather than appropriately sized.

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?

With 16 parameters, nested objects, no annotations, and no output schema, the definition is far too thin. It does not explain required inputs, mutation semantics, or return behavior; the schema covers parameters but the description leaves behavioral context absent.

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 the schema already documents all 16 parameters including nested server and block_page objects. The description adds no parameter-level meaning beyond the schema, so the baseline 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?

States a specific verb (创建/create) and resource (独享模式域名/dedicated-mode domain), and the '独享模式' qualifier implicitly distinguishes it from the cloud-mode CreateHost sibling. However, it does not name the sibling or explicitly contrast the two.

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?

No when-to-use guidance, prerequisites, or alternatives are provided. The '独享模式' label implies dedicated-mode use but does not say when to choose it over CreateHost or what conditions are required.

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