Skip to main content
Glama

vpn__UpdateVgwCertificate

Updates the certificate used by a VPN gateway, including signing, encryption, private keys, and CA chain, for certificate rotation (GM certificates only).

Instructions

[VPN] 更新租户VPN网关所使用的证书,包括签名证书、签名私钥、加密证书、加密私钥和CA证书链。当前只支持国密证书

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>",
      "project_id": "<project_id>",
      "vgw_id": "<vgw_id>"
    },
    "name": "vpn__UpdateVgwCertificate"
  }
}

Input Schema

NameRequiredDescriptionDefault
vgw_idYesVPN网关实例ID
project_idYes项目id
certificate_idYesVPN网关证书ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/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 usefully discloses that private key material is replaced and that only Guomi/SM certificates are currently accepted, which is real behavioral context. It says nothing about required permissions, whether the gateway or existing connections are disrupted, or whether the change can be rolled back — significant omissions for a mutating operation on key material.

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?

Two sentences: the operation and its scope come first, the SM-only restriction second. Dense but front-loaded, with no filler. The long enumeration of certificate components is justified because it defines exactly what gets swapped.

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?

With no annotations and no output schema, the description should carry more: it does not state the effect on the gateway (e.g. whether a reconnection or brief outage occurs) or what the response contains. Parameter coverage is complete via the schema, so the remaining gap is behavioral rather than structural.

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 three parameters (vgw_id, project_id, certificate_id) are documented inline, including a format pattern for project_id, so the baseline is 3. The description adds no semantics beyond the schema — notably it never clarifies that the certificate identified by certificate_id is the one being replaced.

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 gives a specific verb plus resource (更新租户VPN网关所使用的证书) and enumerates exactly which certificate material is replaced (signing cert, signing private key, encryption cert, encryption private key, CA chain). That is enough to distinguish it from CreateVgwCertificate and ShowVpnGatewayCertificate, though it never names those siblings explicitly.

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 by the verb 'update' — replace an existing gateway certificate rather than create a new one. The only explicit guidance is a restriction ('当前只支持国密证书'), which is a constraint rather than when-to-use/when-not guidance, and no alternative tool is mentioned.

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