Skip to main content
Glama

apig__DeleteAclV2

Deletes a specified API Gateway ACL policy. Use it only when no APIs are bound to the policy; existing bindings block deletion.

Instructions

[APIG] 删除指定的ACL策略, 如果存在api与该ACL策略的绑定关系,则无法删除

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

Input Schema

NameRequiredDescriptionDefault
acl_idYesACL策略的编号
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?

No annotations are supplied, so the description must carry the behavioral burden. It usefully discloses the binding-conflict failure mode, which is real added context. It does not state that the deletion is irreversible, whether it is idempotent, what error is returned on conflict, or what permissions are required.

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 compact sentence, and the resource and the blocking condition are front-loaded with no filler. It could be marginally clearer by separating the failure rule into its own clause, but it wastes nothing.

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?

The tool takes only three path params and has no output schema, so complexity is low. The description covers purpose and the main failure condition, but for a destructive operation with no annotations it should also state that deletion is permanent and point to the unbind or list-binding tools for recovery.

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 each of the three path parameters (acl_id, project_id, instance_id) is documented in the schema with examples. The description adds no meaning beyond that, so the baseline of 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 a specific verb and resource: delete the specified ACL policy (删除指定的ACL策略). It is unambiguous about what is deleted and is distinguishable from siblings such as BatchDeleteAclV2 or DeleteApiAclBindingV2 by being a single-policy delete. It does not explicitly contrast itself with those siblings, so it falls short of a 5.

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 description gives one important precondition: the delete fails if any API is still bound to this ACL policy (如果存在api与该ACL策略的绑定关系,则无法删除). This implies the caller must first remove bindings, but it does not name the sibling tool that does so (for example, DeleteApiAclBindingV2) or say how to check bindings first. Usage is implied rather than spelled out.

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