Skip to main content
Glama

aad__SetCertForDomain

Upload or replace the SSL/TLS certificate for a specified domain using its domain ID and project ID, enabling certificate updates for AAD domain protection.

Instructions

[AAD] 上传/修改域名对应证书

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_name": "<cert_name>",
      "domain_id": "<domain_id>",
      "op_type": "<op_type>",
      "project_id": "<project_id>"
    },
    "name": "aad__SetCertForDomain"
  }
}

Input Schema

NameRequiredDescriptionDefault
op_typeYes操作类型。0 - 上传, 1 - 更换
cert_fileNo证书文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空
cert_nameYes证书名称
domain_idYes域名id
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
cert_key_fileNo私钥文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空

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?

With no annotations supplied, the description carries the full disclosure burden, and it reveals almost nothing: it does not state that the operation is a mutation, that replacing a certificate affects live TLS termination on the domain, whether changes are reversible, or what permissions are required. Only the label '上传/修改' hints at the write nature.

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 phrase with zero filler and the resource is front-loaded, but at this length it is under-specified rather than genuinely concise. The bracketed [AAD] prefix adds little navigational value.

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 six-parameter mutating tool with no annotations and no output schema, the description should say more about side effects, preconditions, and what the call returns or changes. The schema covers parameters well, but the behavioral envelope an agent needs before invoking a certificate write is missing.

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 the schema already explains every parameter in detail, including the conditional requirement that cert_file and cert_key_file are mandatory for op_type=0 and must be empty for op_type=1. The description adds no additional meaning beyond that, so the baseline of 3 applies.

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 names a specific resource (域名对应证书, the certificate bound to a domain) and specific actions (上传/修改, upload/modify), so an agent knows this is a domain-certificate write tool. It does not differentiate itself from siblings such as aad__ShowDomainCertificate or aad__UpdateDomain, and the two verbs are only disambiguated by the schema's op_type field rather than in the description.

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 call this versus alternatives, no prerequisites (e.g. project_id sourcing, certificate format requirements), and no exclusions. The agent must infer from the schema alone that op_type=0 means upload and op_type=1 means replace an existing certificate.

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