Skip to main content
Glama

waf__ShowCertificate

Retrieve details for a specified Web Application Firewall (WAF) certificate using its certificate ID and project ID, optionally scoped to an 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>",
      "project_id": "<project_id>"
    },
    "name": "waf__ShowCertificate"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,对应华为云控制台用户名->我的凭证->项目列表->项目ID
certificate_idYeshttps证书id,您可以通过调用查询证书列表(ListCertificates)接口获取证书id
enterprise_project_idNo您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。

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: no statement about required permissions, region/project scoping, error behavior for an invalid or foreign certificate_id, or whether the certificate contents (private key, chain) are exposed. Only the bare verb "查询" signals a non-mutating read.

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 short and front-loaded with zero filler, but the extreme brevity is under-specification rather than economy — a single bracketed tag plus two words conveys no more than the tool name already did.

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 three-parameter, no-annotation, no-output-schema tool, the description leaves the agent without any statement of what is returned or what distinguishes the result. The rich parameter schema partially compensates, but the definition as a whole is thin.

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 project_id, certificate_id and enterprise_project_id are already well documented in the schema, including how to obtain each ID. The description adds no meaning beyond the schema; the baseline of 3 applies.

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?

"[WAF] 查询证书" does name a verb (查询/read) and a resource (证书/certificate), and the verb does separate it from create/delete/update siblings in the WAF family. However, it merely restates the tool name ShowCertificate — there is no scope, no indication of what certificate details are returned, and no differentiation from similarly named Show tools in other services (ccm__ShowCertificate, elb__ShowCertificate).

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 reach for this tool rather than the sibling list/create/delete/update tools, and no stated prerequisites such as needing a certificate already provisioned on a WAF host. An agent must infer entirely from the verb that this is a read lookup by ID.

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