Skip to main content
Glama

waf__UpdateCertificate

Updates a Web Application Firewall (WAF) certificate by ID, allowing you to change its name, PEM certificate content, private key, and associated enterprise project.

Instructions

[WAF] 修改证书

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

Input Schema

NameRequiredDescriptionDefault
keyNo证书私钥,仅支持PEM格式的证书和私钥文件,且文件中的换行符应以\n替换
nameYes证书名称,证书名称只能由数字、字母、中划线、下划线和英文句点组成,长度不能超过256位字符
contentNo证书文件,仅支持PEM格式的证书和私钥文件,且文件中的换行符应以\n替换
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
certificate_idYeshttps证书id,您可以通过调用查询证书列表(ListCertificates)接口获取证书id
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id

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?

No annotations are provided, so the description carries the full behavioral burden, yet it only implies a mutation via "修改". It does not disclose whether the update is a full replacement or a partial patch, whether omitted fields (key, content, enterprise_project_id) are preserved or cleared, what permissions are required, or whether the change is reversible.

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 single short sentence is front-loaded and free of waste, but that brevity comes at the cost of substance rather than being earned conciseness. There is no structural elaboration of scope or behavior.

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 six-parameter mutation tool with no annotations and no output schema, so the description should explain update semantics and side effects. A five-character sentence leaves an agent without enough information to call it safely or predict the result.

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 all six parameters, including the PEM format and newline-escaping rules for key/content and the ID lookup instructions, are already documented in the schema. The description adds no parameter meaning beyond that baseline.

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 "[WAF] 修改证书" names a specific verb (modify) and resource (certificate) and scopes it to WAF, so the basic operation is identifiable. However, it gives no indication of what about the certificate is modified or how this differs from CreateCertificate, DeleteCertificate, ShowCertificate, or the many Update* siblings, leaving the agent to infer the distinction.

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, and no mention of alternatives such as CreateCertificate for new certificates or ShowCertificate for read-only inspection. The agent must infer usage purely from the name.

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