Skip to main content
Glama

apig__CreateAclStrategyV2

Creates an API Gateway ACL strategy that permits or denies access for specified IP addresses or tenant domains, enabling API access control.

Instructions

[APIG] 增加一个ACL策略,策略类型通过字段acl_type来确定(permit或者deny),限制的对象的类型可以为IP或者DOMAIN,这里的DOMAIN对应的acl_value的值为租户名称,而非“www.exampleDomain.com”之类的网络域名。

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_name": "<acl_name>",
      "acl_type": "<acl_type>",
      "acl_value": "<acl_value>",
      "entity_type": "<entity_type>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "apig__CreateAclStrategyV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
acl_nameYesACL策略名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。
acl_typeYes类型
acl_valueYesACL策略值,支持一个或多个值,使用英文半角逗号分隔。
project_idYes项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。
entity_typeYes对象类型:
instance_idYes实例ID,在API网关控制台的“实例信息”中获取。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/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. It does disclose genuinely non-obvious behavior: acl_type determines the policy effect (permit/deny) and, critically, that for DOMAIN entity_type the acl_value is a tenant name rather than a network domain. However, it says nothing about mutation consequences, idempotency, name-uniqueness constraints, or failure conditions.

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?

A single dense sentence that front-loads the action and resource, then layers the two enum constraints and the DOMAIN caveat. No filler, though the nested parentheticals make it slightly harder to scan than separate short clauses would.

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 6-parameter, all-required creation tool with no annotations and no output schema, the description covers the semantic pitfalls well but omits prerequisites, side effects, and any success/failure expectations. Adequate to call correctly, thin on what the call will do to the system.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds meaning not present in the schema: the mapping of acl_type to permit/deny semantics and the special interpretation of acl_value as a tenant name when entity_type is DOMAIN. That DOMAIN clarification is exactly the kind of trap an agent would otherwise fall into, though acl_value's multi-value behavior is left to the schema.

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 (增加一个ACL策略 / create an ACL policy) and immediately explains the two discriminator fields: acl_type governs permit vs. deny, and entity_type governs IP vs. DOMAIN. It does not name or differentiate against siblings such as UpdateAclStrategyV2 or CreateApiAclBindingV2, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The text explains field semantics but never states when to use this tool versus update/list/bind siblings, nor any prerequisites such as required permissions or whether an instance/project must already exist. An agent must infer the usage context entirely from the tool name and schema.

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