Skip to main content
Glama

apig__BatchAssociateDomainsV2

Batch-bind an SSL certificate to multiple API Gateway domains, optionally scoped to specific instances, to secure endpoints and control client certificate validation.

Instructions

[APIG] SSL证书绑定域名。使用实例自定义入方向端口的特性时,相同的域名会同时绑定证书,注意开启/关闭客户端校验会对相同域名的不同端口同时生效。

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": {
      "certificate_id": "<certificate_id>",
      "domains": "<domains>",
      "project_id": "<project_id>"
    },
    "name": "apig__BatchAssociateDomainsV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainsYes证书绑定或解绑域名列表
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
certificate_idYes证书的编号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a genuinely non-obvious trait: with custom ingress ports, the same domain is bound in multiple places at once and toggling client verification affects all ports of that domain together. However, it says nothing about whether existing bindings are replaced or appended, whether the operation is idempotent, or what happens on partial failure for a batch tool.

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 compact sentences with the tag and core purpose front-loaded; there is no filler. The second sentence is dense and slightly ambiguous in wording, but it earns its place by conveying a real port-scoped side effect.

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 three-required-parameter mutation tool with no annotations and no output schema, the definition covers purpose and one important side effect. It still leaves the agent without information on mutation semantics (replace vs. add), error behavior for a batch call, or the response shape.

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 schema already documents certificate_id, project_id, and the nested domains fields, giving a baseline of 3. The description adds no syntax, format, or constraint details beyond the schema and only obliquely touches verified_client_certificate_enabled via the client-verification caveat.

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?

"SSL证书绑定域名" names a specific verb (bind) and resource pair (SSL certificate to domain), so an agent can tell it creates certificate-to-domain bindings. It does not distinguish itself from close siblings such as BatchAssociateCertsV2, AssociateDomainV2, or BatchDisassociateDomainsV2, so the batch/inverse semantics must be inferred from the tool name alone.

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?

The description never states when to use this tool, what prerequisites exist (e.g., the certificate must already exist), or which sibling to choose for the reverse operation or for single-domain binding. The only conditional remarks concern port behavior, not tool selection.

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