Skip to main content
Glama

apig__UpdateCertificateV2

Updates an existing SSL certificate for API Gateway by certificate ID, enabling changes to certificate content, private key, name, algorithm, and visibility scope.

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": {
      "cert_content": "<cert_content>",
      "certificate_id": "<certificate_id>",
      "name": "<name>",
      "private_key": "<private_key>",
      "project_id": "<project_id>"
    },
    "name": "apig__UpdateCertificateV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes证书名称。支持中文,英文字母,数字,下划线,且只能以英文或汉字开头,4~50个字符。
typeNo证书可见范围global
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idNo所属实例ID,当type=instance时必填
private_keyYes证书私钥
cert_contentYes证书内容
algorithm_typeNo证书算法类型:
certificate_idYes证书的编号
trusted_root_caNo信任的根证书CA
private_key_signNo签名类型私钥内容,仅algorithm_type=SM2时必填。
cert_content_signNo签名类型证书内容,仅algorithm_type=SM2时必填。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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 behavioral burden, yet it discloses nothing beyond the bare action. It does not say whether this replaces the whole certificate record, whether re-supplying cert_content and private_key is mandatory (the schema requires them, which is surprising for an update), whether changes are reversible, or what permissions are needed.

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?

It is a single short sentence with zero waste and the action is front-loaded, but at this length the brevity is under-specification rather than efficiency. A tagged one-liner ('[APIG] 修改SSL证书。') conveys little beyond the tool name.

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 an 11-parameter, 5-required mutation tool with no annotations and no output schema, the description is far too thin. An agent gets no warning that required fields include full certificate and private key material, and no indication of the effect of the update or of the type=instance/instance_id coupling.

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 11 well-documented parameters, including enums and conditional requirements for SM2 key/cert fields, so the schema does the heavy lifting. The description adds no meaning beyond it, which matches the baseline 3.

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 states a specific verb and resource ('修改SSL证书' / modify SSL certificate), which is enough to distinguish it from Create/Delete/Associate/Disassociate/ShowDetails siblings by name alone. It stops short of saying what aspect of the certificate is modified, so it is clear but not maximally specific.

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?

There is no guidance on when to use this tool versus the sibling certificate operations, no prerequisites, and no exclusions. An agent must infer from the name alone that this is the update path for an existing certificate rather than a create or associate action.

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