Skip to main content
Glama

apig__DisassociateCertificateV2

Removes an unneeded or expired domain certificate from an API Gateway instance and disassociates it from the associated domain.

Instructions

[APIG] 如果域名证书不再需要或者已过期,则可以删除证书内容。在使用自定义入方向端口的特性时,相同的域名会同时解绑证书。

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/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 burden. It does disclose one genuine side effect: when the custom ingress port feature is in use, the same domain simultaneously has its certificate unbound, which hints that the operation may affect more than one binding. It does not state whether the certificate object itself survives, whether the operation is reversible, or what permissions are required.

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?

Two short sentences with no filler, which is appropriately sized. However, the first sentence spends its words on deletion rationale rather than on the disassociation action, so the front-loaded content points the agent in a slightly wrong direction.

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?

This is a mutating operation with five required identifiers, no annotations, and no output schema, so the description must supply prerequisites and effect details. It omits that all five IDs must first be obtained from other calls, says nothing about the result of the call, and leaves the delete-versus-unbind ambiguity unresolved.

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 five path parameters (group_id, domain_id, project_id, instance_id, certificate_id) are documented in the schema. The description adds no additional meaning about how these identifiers relate to each other or which one determines the scope of the unbinding, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

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

The description explains the scenario ("if the domain certificate is no longer needed or has expired, you can delete the certificate content") but frames the action as deleting certificate content rather than unbinding a certificate from a domain, which is what the name DisassociateCertificateV2 implies. An agent could easily confuse this with the sibling DeleteCertificateV2. The resource is identifiable only through the name and the path parameters.

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 only guidance given is a lifecycle condition (certificate unneeded or expired), which would equally justify the delete tool. No alternative is named — neither DeleteCertificateV2 for actually removing a certificate nor BatchDisassociateCertsV2 for multiple certificates. The agent is left to infer when disassociation is preferred over deletion.

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