Skip to main content
Glama

waf__UpdateHost

Update WAF cloud-mode protected domain settings such as origin servers, TLS, certificates, timeouts, and traffic flags; send only changed fields, and omitted server data replaces existing origins.

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "waf__UpdateHost"
  }
}

Input Schema

NameRequiredDescriptionDefault
tlsNo配置的最低TLS版本(TLS v1.0/TLS v1.1/TLS v1.2),默认为TLS v1.0版本,对于低于最低TLS版本的请求,将无法正常访问网站
flagNo特殊标识,用于前端使用
proxyNo防护域名是否使用代理
cipherNo加密套件(cipher_1,cipher_2,cipher_3,cipher_4,cipher_default):
extendNo扩展字段,用于保存防护域名的一些配置信息。
serverNo防护域名的源站服务器配置信息
web_tagNo网站名称,对应WAF控制台域名详情中的网站名称
paid_typeNo套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。
block_pageNo告警页面配置
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
instance_idYes域名id,您可以通过调用查询云模式防护域名列表(ListHost)获取域名id
ipv6_enableNo是否开启IPv6防护,仅专业版和企业版支持IPv6防护。
exclusive_ipNo是否使用独享ip
http2_enableNo是否支持http2
traffic_markNo流量标识
certificateidNo证书id,通过查询证书列表接口(ListCertificates)接口获取证书id
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.7/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose two genuinely non-obvious behaviors: that an omitted server payload causes overwrite rather than append, and that the body may contain only changed fields. What is missing is any statement about permissions, reversibility, or what a successful update returns.

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 front-loaded sentences with no filler; the overwrite semantics come first because they are the highest-risk detail. The '[WAF]' tag adds little, but nothing is padded or redundant.

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 mutation tool with deep nesting, no annotations and no output schema, the description covers the two highest-risk behaviors but says nothing about required-vs-optional interaction beyond the partial-update note, side effects, or the response shape. The rich schema compensates for most parameter gaps, so the definition is workable but not fully complete.

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 coverage is 100%, so the baseline is 3 and the schema already documents all 21 parameters including nested server, block_page, circuit_breaker and timeout_config objects. The description adds real meaning on top by explaining the replace-vs-append semantics of the `server` array and the partial-update contract for the optional parameters.

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 states a specific verb and resource — updating cloud-mode ('云模式') protected domain configuration — which implicitly separates it from the premium-host siblings such as waf__UpdatePremiumHost. It is clear what is being modified, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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?

The sentence '请求体可只传需要更新的部分' effectively tells the agent this tool supports partial/patch-style updates, which is useful usage guidance. However, there is no explicit when-to-use versus when-not, and nothing indicating that premium/非云模式 domains should use waf__UpdatePremiumHost instead.

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