Skip to main content
Glama

waf__MigrateCompositeHosts

Migrates WAF protected domains and their policy or certificate settings between enterprise projects; supports Professional and Dedicated editions.

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": {
      "enterprise_project_id": "<enterprise_project_id>",
      "host_ids": "<host_ids>",
      "policy_id": "<policy_id>",
      "project_id": "<project_id>",
      "target_enterprise_project_id": "<target_enterprise_project_id>"
    },
    "name": "waf__MigrateCompositeHosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
host_idsYeshost_id列表
policy_idYes策略ID(目标企业项目下的策略ID)
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
certificate_idNo证书ID(目标企业项目下的证书ID)
enterprise_project_idYes当前企业项目ID
target_enterprise_project_idYes迁移的目标企业项目ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It does disclose a meaningful constraint (edition support) and 'migrate' implies a mutating operation, but it says nothing about irreversibility, whether the operation is asynchronous, what happens to existing policy or certificate bindings, or required permissions.

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?

The description is a single compact sentence with the operation stated first and the eligibility caveat second, which is well front-loaded. The '[WAF]' prefix is a redundant tag that carries little selection value, keeping it from a 5.

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?

This is a migration tool with six parameters, five of them required, no annotations, and no output schema. The edition restriction is helpful, but an agent still cannot tell from the description whether the move affects existing bindings, whether it is reversible, or what a successful call returns.

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 input schema already documents all six parameters, including the source and target enterprise project IDs and the target policy/certificate. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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: migrating protected domains ('防护域名') across enterprise projects ('按企业项目迁移'). This is unambiguous and distinguishable from read-oriented siblings such as ListCompositeHosts or ShowCompositeHost. It does not explicitly name an alternative, which keeps it just below 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 Guidelines4/5

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

The description adds a concrete eligibility gate the agent could not infer from the schema: the function is only supported on WAF Professional and Dedicated editions ('仅专业版与独享版支持该功能'). It offers no routing guidance relative to other migration tools, so it lacks full when-to-use versus alternatives coverage.

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