Skip to main content
Glama

apig__CheckApiGroupsV2

Checks whether an API group name already exists in a specified Huawei Cloud API Gateway instance and project, helping prevent duplicate names before creating a group.

Instructions

[APIG] 校验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": {
      "group_name": "<group_name>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CheckApiGroupsV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_nameYes待校验的API分组名称
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。
roma_app_idNo集成应用ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/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 burden of disclosure. It does not say whether the call is read-only, what the result looks like (a boolean, a conflict error, or the existing group's details), whether project/instance scoping affects the result, or what permissions are needed. The terse check phrasing is the only behavioral signal.

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?

It is a single short sentence with no filler, and it leads with the [APIG] tag and the action verb. It is efficient, though it leans toward under-specification rather than maximum usefulness.

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?

The tool has four parameters, three of them required, no annotations, and no output schema. For a check/validation tool, the meaning of the result is critical, yet the description never explains what a positive or negative outcome looks like. This leaves a real gap given the tool's complexity.

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 four parameters are documented in the input schema, including the optional roma_app_id and the path-scoped instance_id and project_id. The description adds no meaning beyond the schema. When the schema does the heavy lifting, the baseline score of 3 is appropriate.

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 gives a specific verb and resource: it checks whether an API group name exists (校验API分组名称是否存在). That distinguishes it from sibling list or detail tools such as ListApiGroupsV2 and ShowDetailsOfApiGroupV2. The description does not name a sibling explicitly, though, so it stays at 4.

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 word '校验' implies a validation step, such as checking before creating a group. The description never states when to use this tool, when not to use it, or how it relates to CreateApiGroupV2 and CheckApisV2/CheckAppV2. An agent must infer the intended workflow from the tool name alone.

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