Skip to main content
Glama

apig__BatchAssociateCertsV2

Binds an SSL certificate to a domain in API Gateway, linking the certificate ID to a specified domain, group, and instance for secure HTTPS access.

Instructions

[APIG] 域名绑定SSL证书。目前暂时仅支持单个绑定,请求体当中的certificate_ids里面有且只能有一个证书ID。使用实例自定义入方向端口的特性时,相同的域名会同时绑定证书,注意开启/关闭客户端校验会对相同域名的不同端口同时生效。

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_ids": "<certificate_ids>",
      "domain_id": "<domain_id>",
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__BatchAssociateCertsV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYes分组的编号
domain_idYes域名的编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
certificate_idsYes证书的id集合
verified_client_certificate_enabledNo是否开启客户端证书校验。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/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 does disclose genuinely non-obvious behavior — the single-certificate limitation and the fact that toggling client verification affects the same domain across different custom ingress ports — but says nothing about whether an existing binding is replaced, what permissions are needed, or what failure modes look like for a mutation call.

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?

Purpose is front-loaded in the first clause, followed by the hard constraint and then the port side-effect caveat — a sensible ordering. It is dense but every sentence carries information; only the trailing note is slightly hard to parse.

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 5-required-parameter mutation tool with no annotations and no output schema, the description covers the key call constraint and one side effect but omits prerequisites, permissions, replacement semantics, and error behavior. Adequate to call, not adequate to predict consequences.

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 coverage is 100%, so baseline would be 3, but the description adds real meaning beyond the schema by constraining certificate_ids to exactly one element, which the schema merely calls 'a set of certificate IDs'. The cross-port effect note also gives behavioral context for verified_client_certificate_enabled that the schema description does not fully cover.

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 names a specific verb and resource (bind an SSL certificate to a domain) and clarifies that despite the 'Batch' name only one certificate ID is currently accepted. It is unambiguous on its own, but it never names or contrasts with the closely related siblings such as AssociateCertificateV2 or BatchDisassociateCertsV2, so the agent must infer the split itself.

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?

Usage is only implied: the 'only one certificate ID allowed' rule tells the agent how to call it, but there is no statement of when to prefer this over the singular associate tool or when not to use it. No prerequisites (certificate pre-uploaded, domain existing in the group/instance) are stated.

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