Skip to main content
Glama

apig__CreateCertificateV2

Create an SSL certificate for Huawei Cloud API Gateway using certificate content, private key, name, and project ID, with optional instance scope, algorithm type, and root CA.

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

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证书算法类型:
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.5/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden and delivers almost nothing. It does not disclose that this is a create/mutation operation with irreversible effects, that certificate names must be unique, that a private key must be supplied, or how the visible scope (type=global vs instance) changes required inputs.

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 one-line description is not padded or redundant, but it is under-specified rather than concise: it ends before conveying any operational detail. There is no structure or front-loading to evaluate because there is only a single short clause.

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 10-parameter creation tool with conditional requirements and no annotations or output schema, the description is far too thin. An agent gets no warning about which parameter combinations are invalid or what the call produces.

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%, so every parameter including the conditional instance_id, algorithm_type, and SM2 sign fields is already documented in the schema. The description adds no meaning beyond that, which makes the baseline 3 appropriate rather than higher.

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 states a specific verb and resource ("创建SSL证书" / create an SSL certificate), which is enough to know the basic operation. However, it adds no scope, no distinction from apig__UpdateCertificateV2 or apig__DeleteCertificateV2, and no indication of what kind of certificate or for which API gateway context.

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 when-to-use guidance: no prerequisites, no mention of when to call this versus the update, associate, or delete certificate siblings, and no exclusions. The agent must infer everything from the tool name and sibling list.

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