Skip to main content
Glama

apig__AssociateCertificateV2

Associates an SSL certificate and private key with an API Gateway custom domain to enable HTTPS access for APIs.

Instructions

[APIG] 如果创建API时,“定义API请求”使用HTTPS请求协议,那么在独立域名中需要添加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": {
      "cert_content": "<cert_content>",
      "domain_id": "<domain_id>",
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "name": "<name>",
      "private_key": "<private_key>",
      "project_id": "<project_id>"
    },
    "name": "apig__AssociateCertificateV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes证书名称。长度为4 ~ 50位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。
group_idYes分组的编号
domain_idYes域名的编号
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
private_keyYes私钥内容
cert_contentYes证书内容

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description implies certificate addition but does not state that this is a mutating association, what permissions or preconditions are required, whether the operation is idempotent, or what happens on failure.

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?

The description is a single concise sentence with no wasted wording. However, it front-loads a prerequisite condition rather than the tool's action, so its conciseness does not translate into a clear, usable definition.

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?

For a mutating tool with seven required parameters and no output schema or annotations, the description is far too thin. It supplies a scenario but omits what the tool does, its side effects, and any operational guidance, leaving the agent under-informed.

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?

The schema already has 100% description coverage for all seven required parameters, including certificate content, private key, domain ID, group ID, and instance ID. The description adds no additional meaning beyond the schema, so the baseline score of 3 applies.

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 explains a prerequisite scenario (HTTPS APIs require an SSL certificate on a custom domain) but never states what the tool itself does. It does not say it associates a certificate with a domain, so an agent must infer the action from the tool name rather than the description.

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?

It provides a clear usage condition: use this when an API uses HTTPS and the independent domain needs an SSL certificate. However, it does not mention alternatives such as DisassociateCertificateV2 or BatchAssociateCertsV2, nor does it state when not to use this tool.

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