Skip to main content
Glama

apig__CreateApiV2

Creates a service interface (API) in Huawei Cloud API Gateway for a specified instance and project, enabling you to expose concrete service capabilities.

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__CreateApiV2"
  }
}

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.5/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 burden of behavioral disclosure. It does not state that this is a mutating operation, what permissions or instance state are required, whether the new API needs a group or backend definition, or what happens on duplicate names — all relevant for a create call. Nothing beyond the verb is disclosed.

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 the action, which is good. But the second clause is filler that restates what an API is rather than conveying tool-specific information, so the sentence does not fully earn its place.

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 mutation tool with no annotations, no output schema, and a schema limited to instance/project identifiers, the description should explain what the created API consists of or what the response provides. None of that is present, leaving an agent that must construct a create call significantly under-informed.

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?

Both parameters (instance_id, project_id) are fully documented in the schema, including where to obtain each value, so the schema already does the explanatory work. The description adds no meaning beyond the schema — notably it never explains how the API's own definition is supplied, which the two-parameter schema leaves entirely implicit.

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 gives a verb plus resource ('添加一个API' = add an API), so the basic operation is identifiable. However, the remainder ('API即一个服务接口,具体的服务能力') is a generic gloss on what an API is rather than a statement of what this tool does, and nothing distinguishes it from siblings such as apig__CreateApi, apig__UpdateApiV2, or apig__ImportApiDefinitionsV2.

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 use this creation tool versus the many other creation/import/update siblings in the catalog. No prerequisites, no preconditions, and no exclusions are stated; the agent must infer everything 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