Skip to main content
Glama

apig__AssociateCertificate

Associates an SSL certificate with an API Gateway independent domain to enable HTTPS API requests.

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>",
      "name": "<name>",
      "private_key": "<private_key>"
    },
    "name": "apig__AssociateCertificate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes证书名称。长度为4 ~ 50位的字符串,字符串由中文、英文字母、数字、下划线组成,且只能以英文或中文开头。
group_idYes分组的编号
domain_idYes域名的编号
private_keyYes私钥内容
cert_contentYes证书内容

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/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 behavioral burden and mostly fails to. It never says this is a mutating/binding operation, whether it also creates the certificate record (the schema requires cert_content and private_key, suggesting an upload plus bind), whether the operation is idempotent, or what happens if a certificate is already bound to the domain. It also omits any permission or sensitive-key handling context, which matters for a tool taking a private key.

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?

A single short sentence with no filler or repetition, and the trigger condition is placed first. It is efficient, though its brevity comes at the cost of substance rather than from tight editing of rich content.

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 five-required-parameter mutation tool with no annotations and no output schema, the definition is far too thin: it explains only one motivating scenario and leaves the action, effects, and failure behavior unstated. An agent could not reliably decide between this and AssociateCertificateV2, BatchAssociateCertsV2, or CreateCertificateV2 from this text.

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%, with each of the five parameters documented in the schema itself (name length/charset rules, group_id, domain_id, cert_content, private_key), so the schema does the heavy lifting. The description adds no parameter meaning at all — it does not clarify the relationship between domain_id and group_id or the format of the certificate/private key payloads. Baseline 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 never states the action the tool performs; it only gives a scenario ("if the API request uses HTTPS, you need to add an SSL certificate to the independent domain"). The verb (associate) and the resource (certificate ↔ domain) must be inferred from the tool name, not read from the text. It reads as a precondition note rather than a definition of purpose.

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 does give a concrete trigger condition: use this when an API's request definition uses the HTTPS protocol and the domain is a custom/independent domain. There is no when-not guidance, no mention of prerequisites such as an existing domain or group, and no routing to the many related siblings (AssociateCertificateV2, BatchAssociateCertsV2, CreateCertificateV2, DisassociateCertificate).

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