Skip to main content
Glama

waf__CreateHost

Create a Huawei Cloud WAF protected domain in cloud mode by specifying the hostname, proxy setting, origin servers, and project ID.

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__CreateHost"
  }
}

Input Schema

NameRequiredDescriptionDefault
proxyYes防护域名是否使用代理
serverYes防护域名的源站服务器配置信息
web_tagNo网站名称,对应WAF控制台域名详情中的网站名称
hostnameYes域名(域名只能由字母、数字、-、_和.组成,长度不能超过64个字符,如www.domain.com)
policyidNo防护域名初始绑定的策略ID,可以通过策略名称调用查询防护策略列表(ListPolicy)接口查询到对应的策略id
paid_typeNo套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
descriptionNo域名描述
exclusive_ipNo是否使用独享ip
lb_algorithmNoLB负载均衡,仅专业版和企业版支持配置负载均衡算法
certificateidNo证书id,通过查询证书列表接口(ListCertificates)接口获取证书id
certificatenameNo证书名
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, yet it states nothing about permissions required, uniqueness constraints on hostname, quota limits, whether the domain becomes actively protected immediately, or whether the call is reversible. For a mutating create operation with nested source-server config, this is a substantial 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 single bracketed phrase is free of waste, but it is so terse that there is essentially nothing to front-load — concision is achieved by omission rather than by efficient structuring of useful content.

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 14-parameter mutation tool with nested objects, no annotations, and no output schema, so the description should explain prerequisites, side effects, and at least the mode contrast. A one-line phrase leaves the agent without the context needed to call it confidently.

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%, including the nested server array fields, port, protocol enums, and the pointer to ListPolicy/ListCertificates for related IDs, so the schema already does the heavy lifting. The description adds no parameter meaning of its own, making 3 the correct 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 gives a specific verb+resource ('创建' / create a '防护域名' / protected domain) scoped to '云模式' (cloud mode), which implicitly distinguishes it from the sibling waf__CreatePremiumHost (premium mode). However, it never explicitly names that alternative, so the differentiation requires the agent to already know what 'cloud mode' contrasts with.

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 versus waf__CreatePremiumHost, waf__UpdateHost, or waf__ApplyCertificateToHost, and no stated prerequisites such as a required existing policy (policyid) or certificate. The agent must infer the entire selection context from the mode keyword alone.

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