Skip to main content
Glama

apig__CheckApisV2

Checks whether an API path or name already exists in Huawei Cloud API Gateway, helping prevent duplicate API definitions before creation.

Instructions

[APIG] 校验API定义。校验API的路径或名称是否已存在

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": {
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CheckApisV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. The word 校验 implies a non-mutating check, but the description does not confirm read-only behavior, state what the result means (e.g. an existence flag or conflict error), or mention permissions or idempotency.

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?

The definition is short and front-loaded, with the core purpose stated first. The second sentence partly restates the first (校验API定义 vs. 校验…是否已存在), so there is minor redundancy but no bloat.

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?

With no annotations, no output schema, and no explanation of the check's result, the description leaves key questions unanswered for a validation tool. The gap between the stated name/path check and the actual two-ID schema makes it incomplete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the two path parameters are already documented, but the description adds a mismatch: it says the tool checks the API's path or name, yet the schema accepts only instance_id and project_id with no name or path field. This creates confusion rather than adding meaning.

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 states a specific verb (校验/validate) and resource (API definition), and narrows the check to whether the API's path or name already exists. It is clear enough to select, but it does not distinguish this tool from same-prefix siblings such as apig__CheckApiGroupsV2 or apig__CheckAppV2.

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?

The purpose implies a pre-creation uniqueness check, but the description never says when to call it, when not to, or what alternative to use instead. No prerequisites or ordering guidance are given.

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