Skip to main content
Glama

apig__CreateApiGroupV2

Creates an API group in API Gateway and returns a subdomain as its access entry, helping organize related APIs under one service endpoint.

Instructions

[APIG] API分组是API的管理单元,一个API分组等同于一个服务入口,创建API分组时,返回一个子域名作为访问入口。建议一个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__CreateApiGroupV2"
  }
}

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

B3.4/5.0
Behavior3/5

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

With no annotations, the description does carry the burden of disclosure, and it does add one valuable behavioral fact: a successful create returns a subdomain used as the access entry. It does not state permission requirements, quotas, idempotency, or what happens when a group with the same name exists.

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 short, dense passage with no filler, and the subdomain return detail is valuable. It does lead with a definition of what an API group is rather than front-loading the create action, which slightly delays the operative information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter create tool with fully documented schema, no annotations, and no output schema, the description covers the conceptual resource and one return behavior. It omits prerequisites (the instance must exist and be accessible) and permission or quota considerations, leaving gaps an agent would need before invoking.

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 itself explains how to obtain project_id (via the project ID API) and instance_id (from the console's instance info). The description adds nothing about either parameter, so the baseline 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 states that an API group is a management unit equivalent to a service entry and that creating one returns a subdomain as the access entry, which conveys the create action plus its outcome. The action verb is only implied ('创建API分组时'), carried mostly by the tool name, and there is no explicit differentiation from siblings such as CreateApiGroup or roma__CreateApiGroupV2.

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?

It offers design guidance ('建议一个API分组下的API具有一定的相关性'), which implies grouping-related APIs together, but gives no guidance on when to use this tool versus the similarly named alternatives or what prerequisites must hold. Usage is therefore implied rather than explicit.

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