Skip to main content
Glama

waf__UpdatePremiumHost

Updates a dedicated-mode domain configuration in Huawei Cloud WAF, supporting partial changes and replacing origin server settings when new source data is supplied.

Instructions

[WAF] 修改独享模式域名配置,在没有填入源站信息server的原始数据的情况下,则新的源站信息server会覆盖源站信息,而不是新增源站。此外,请求体可只传需要更新的部分。

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": {
      "host_id": "<host_id>",
      "project_id": "<project_id>"
    },
    "name": "waf__UpdatePremiumHost"
  }
}

Input Schema

NameRequiredDescriptionDefault
tlsNo配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
flagNo配置独享防护域名合规认证开关
modeNo独享模式特殊域名模式(仅特殊模式需要,如elb)
proxyNo防护域名是否使用代理
cipherNo加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):
lockedNo预留参数,用于后期设计冻结域名,解锁域名功能,目前暂不支持
serverNo防护域名的源站服务器配置信息
host_idYes独享模式域名ID
pool_idsNo特殊模式域名所属独享引擎组(仅特殊模式需要,如elb)
timestampNo时间戳
block_pageNo告警页面配置
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
traffic_markNo流量标识
access_statusNo域名接入状态,0表示未接入,1表示已接入
certificateidNo证书id,通过查询证书列表接口(ListCertificates)接口获取证书id
protect_statusNo域名防护状态:
timeout_configNo超时配置
certificatenameNo证书名
circuit_breakerNo熔断配置
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

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It does disclose two genuinely non-obvious mutation traits: that the server array is replaced wholesale rather than appended, and that the request body may contain only the fields being changed (PATCH-like semantics). It says nothing about required permissions, whether omitted fields are reset, or what the response contains, so a meaningful gap remains for a 21-parameter write operation.

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?

Two dense sentences with no filler, and the highest-risk detail (server overwrite) is front-loaded immediately after the purpose statement. The bracketed [WAF] tag and the run-on construction of the first sentence slightly reduce readability, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter nested mutation with no annotations and no output schema, the description covers the riskiest semantic pitfall but not the surrounding operational context. An agent still lacks guidance on auth/prerequisites and on the effect of omission for fields like protect_status or access_status, though the fully documented schema compensates for most parameter-level gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description earns above baseline by explaining the replacement semantics of the `server` array — the single most error-prone parameter in a 21-parameter mutation schema. It also clarifies that partial bodies are legal, which changes how an agent should construct the payload.

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 and resource (修改独享模式域名配置) and scopes it to dedicated-mode (premium) hosts, which implicitly separates it from the general waf__UpdateHost and from waf__UpdatePremiumHostProtectStatus. It does not explicitly name a sibling or state the contrast, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the '独享模式' qualifier — an agent can infer this is the right call for dedicated-mode hosts rather than standard hosts. However, there is no explicit when-to-use statement, no exclusion, and no guidance on choosing between this and waf__UpdateHost when a host could plausibly be either.

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