Skip to main content
Glama

waf__CreateInstance

Creates Huawei Cloud WAF dedicated engine instances by defining region, VPC, subnet, security group, architecture, specification, and count for tenant-specific deployment.

Instructions

[WAF] 创建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": {
      "arch": "<arch>",
      "available_zone": "<available_zone>",
      "count": "<count>",
      "instancename": "<instancename>",
      "project_id": "<project_id>",
      "region": "<region>",
      "security_group": "<security_group>",
      "specification": "<specification>",
      "subnet_id": "<subnet_id>",
      "vpc_id": "<vpc_id>"
    },
    "name": "waf__CreateInstance"
  }
}

Input Schema

NameRequiredDescriptionDefault
archYes独享引擎CPU架构,例如:x86与arm
tagsNoTMS标签信息
countYes申请的独享引擎数量
regionYes需要创建独享引擎的局点,例如:北京四(cn-north-4)
vpc_idYes独享引擎所在VPC的ID(通过调用虚拟私有云ListVpcs接口获取所有的VPC列表查询VPC的ID,如果需要关联企业项目,则调用虚拟私有云的接口也需要关联企业项目ID)
subnet_idYes独享引擎所在VPC内的子网ID(通过调用虚拟私有云ListSubnets接口获取所有的子网列表查询子网的ID,如果需要关联企业项目,则调用虚拟私有云的接口也需要关联企业项目ID)
chargemodeNo收费模式,当前仅支持按需收费(30)
cpu_flavorNo独享引擎ECS规格,实例规格。创建资源租户类独享引擎可不填该参数,创建普通资源租户独享引擎必填该参数。普通租户类独享引擎具体支持的规格以waf控制台上支持的规格为准,企业版对应8U16G的ecs规格,专业版对应2U4G的ecs规格。
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
res_tenantNo是否为资源租户类,默认值为false。
instancenameYes独享引擎名称前缀
anti_affinityNo是否开启反亲和。仅资源租户独享实例支持该特性。
specificationYes独享引擎版本规格
available_zoneYes需要创建独享引擎的可用区,例如:北京四可用区1(cn-north-4a)
security_groupYes独享引擎需要绑定的安全组ID(通过调用虚拟私有云ListSecurityGroups接口获取所有的安全组列表查询安全组的ID,如果需要关联企业项目,则调用虚拟私有云的接口也需要关联企业项目ID)
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

没有提供任何注解,因此描述需要承担全部说明责任,而描述只部分履行了这一责任:它披露了按租户类别的局点可用性限制,这一点确实会改变调用行为。但它从未说明创建操作是异步的,是否会产生费用,是否安排在订单之后,或返回值是什么,而这些对于没有注解的变更工具都是关键信息。

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?

开头先说明用途,随后列出约束条件,这一点做得很好,但描述的大部分内容是用叙述方式罗列的局点目录,内容臃肿;如果改用枚举格式会更容易浏览。这里没有无意义的措辞,但这篇描述的头重脚轻程度超过理想状态。

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?

对于一个有 16 个参数、没有注解、也没有输出 Schema 的变更型工具,描述只覆盖了用途和局点限制,却没有说明创建后会发生什么,例如是否异步、是否按订单计费,也没有说明 cpu_flavor、res_tenant 和 specification 之间的相互作用。已经覆盖的内容有用但不完整;Schema 承担了其余说明。

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 描述覆盖率已是 100%,所以基线为 3;描述中的局点清单为 region 和 available_zone 增加了超出 Schema 的实质含义,因为这两个参数没有枚举校验,使 Agent 可以预先验证调用。其余 14 个参数仍完全依赖 Schema 说明,其中说明相当详细。

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?

"[WAF] 创建WAF独享引擎实例" 属于具体的动词加资源组合,含义没有歧义,并且能把它和列表、删除、重命名等同级工具区分开。它没有再点明与 waf__CreatePrepaidCloudWaf 的区别,但由于资源类型是专用实例,所以已经足够清楚。

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?

描述中包含了真正可操作的调用前提,即哪些局点支持独享模式,以及普通租户类独享支持哪些局点,Agent 可以直接拿它对照 region 参数来使用。但它没有说明何时应改用预付费云 WAF 创建工具,也没有说明资源租户类和普通租户类之间的选择。

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