Skip to main content
Glama

apig__AssociateDomainV2

Binds a user-defined domain to an API gateway group on a specified instance so APIs can be accessed through that custom domain after adding the required DNS A record.

Instructions

[APIG] 用户自定义的域名,需要增加A记录才能生效,具体方法请参见《云解析服务用户指南》的“添加A类型记录集”章节。

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

Input Schema

NameRequiredDescriptionDefault
group_idYes分组的编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden. It does contribute one genuine behavioral fact — the association will not take effect until a DNS A record is added, pointing to the Cloud DNS user guide — but omits that this is a mutating operation, whether it is idempotent, required permissions, and what happens if the domain is already bound.

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 short sentence with no padding, so it is not verbose. However, the entire budget is spent on a DNS caveat rather than front-loading what the tool does, so the one sentence that exists does not carry the most important information.

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

Completeness2/5

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

The tool is simple (three required path parameters, no output schema), so the description would only need a clear statement of the association action and its effect. Instead it supplies only a prerequisite note, leaving the core operation and its outcome unexplained, which is insufficient for even this low-complexity tool.

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%, and all three path parameters (group_id, project_id, instance_id) are documented in the schema with examples and acquisition instructions. The description adds no parameter meaning beyond that, 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.

Purpose2/5

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

The description names the resource ("用户自定义的域名" / user-defined domain) but never states the action this tool performs — no verb such as associate/bind, and no mention of the group/instance it is bound to. An agent must infer the operation from the tool name alone, and nothing distinguishes it from siblings like apig__AssociateDomain or roma__AssociateDomainV2.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no reference to alternatives, despite several near-identical siblings (AssociateDomain, BatchAssociateDomainsV2, roma__AssociateDomainV2) that an agent must choose between. The only guidance-like content is a post-condition note that an A record must be added for the domain to take effect, which is a prerequisite hint rather than invocation guidance.

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