Skip to main content
Glama

apig__AssociateDomain

Binds a custom domain to a Huawei Cloud API group so requests can reach that group; add a CNAME record from the domain to the group's subdomain to activate it.

Instructions

[APIG] 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见增加CNAME类型记录集。

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": {
      "group_id": "<group_id>",
      "url_domain": "<url_domain>"
    },
    "name": "apig__AssociateDomain"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYesAPI分组编号
url_domainYes自定义域名。长度为0-255位的字符串,需要符合域名规范。

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 supplied, so the description carries the full burden. It discloses one important operational caveat (the binding is inert until CNAME is configured) but says nothing about permissions, whether the operation is idempotent, what happens if the domain is already associated, or whether existing bindings are replaced.

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?

It is a single compact sentence with no padding, but the space is spent on background about custom domains rather than on the action, and the trailing documentation link carries much of the substantive guidance. Front-loading what the tool does would use the same words better.

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 two-parameter mutation with no annotations and no output schema, the description covers the key external prerequisite (CNAME) but leaves the effect of the call, its result, and its failure/duplicate behavior unexplained. Adequate as an orientation, incomplete as an invocation guide.

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%: both group_id and url_domain have descriptions, examples, and the 0-255 length/format constraint. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The text explains the concept of a user-defined domain and its CNAME requirement, but never states the tool's action directly — nothing like 'binds this domain to the specified API group'. The verb is only inferable from the name AssociateDomain and the group_id parameter, so the purpose is implied 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?

There is a real usage condition here — the domain only takes effect after a CNAME record points at the API group subdomain — plus a documentation link for that DNS step. What's missing is routing against siblings such as apig__DisassociateDomain or the V2 variants, and any statement of prerequisites or ordering relative to those.

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