Skip to main content
Glama

apig__DeleteApi

Deletes a specified API and its related resources, including publish records, backend service bindings, and app authorizations, to remove it from Huawei Cloud API Gateway.

Instructions

[APIG] 删除指定的API 删除API时,会删除该API所有相关的资源信息或绑定关系,如API的发布记录,绑定的后端服务,对APP的授权信息等。

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": {
      "api_id": "<api_id>"
    },
    "name": "apig__DeleteApi"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAPI的编号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior4/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, and it does disclose the important destructive behavior: deleting an API also removes publish records, bound backend services, and APP authorization bindings. It stops short of stating whether the deletion is irreversible or what permissions are required, which are the remaining behavioral gaps for a destructive operation.

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?

Two short sentences, front-loaded with the action and followed by the consequence, with no filler. The '[APIG]' prefix and the near-restatement of the tool name are minor overhead.

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

Completeness4/5

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

For a one-parameter destructive tool with no output schema, the cascade list of affected resources is the key information an agent needs and it is present. Completeness would be improved by noting irreversibility and any authorization requirements, since no annotations carry that information.

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?

There is a single required parameter (api_id) with 100% schema description coverage, so the schema already documents its meaning and format. The description adds nothing beyond the schema about the identifier, which is the expected baseline here.

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 and resource combination ('删除指定的API' / delete the specified API) and scopes it to one API by id, so an agent can tell what it does at a glance. It does not differentiate itself from the similarly named siblings such as apig__DeleteApiV2 or apig__DeleteApiByVersionIdV2, leaving the agent to infer which delete variant applies.

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?

The description explains what happens after the call but gives no guidance on when to choose this tool over the V2 or version-id delete variants, and states no prerequisites or preconditions. The cascade warning implies caution but is not framed as a usage rule.

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