Skip to main content
Glama

apig__UpdateAclStrategyV2

Updates an API Gateway ACL policy, allowing changes to its name, type, and value for access control management.

Instructions

[APIG] 修改指定的ACL策略,其中可修改的属性为:acl_name、acl_type、acl_value,其它属性不可修改。

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>",
      "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__UpdateAclStrategyV2"
  }
}

Input Schema

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

A3.5/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 disclosure burden. It does add real value by declaring which fields are immutable, which explains why entity_type, instance_id and project_id appear as required path identifiers rather than update targets. It says nothing about permissions, whether unlisted fields are reset, idempotency, or failure modes.

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 front-loaded sentence with the tool tag, the action, and the mutable-field list; no filler. The only structural weakness is that the mutation semantics are compressed into one clause with no follow-up detail.

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 no-annotation mutation tool with seven required parameters and no output schema, this is minimally adequate. It omits how to obtain acl_id, whether the call replaces or patches the record, and what a successful response contains.

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 100%, so baseline would be 3, but the description adds meaning the schema does not: it partitions the seven required parameters into three mutable business attributes versus four non-modifiable identifiers. That resolves the ambiguity of a schema where every field is marked required.

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 names a specific verb (修改/modify) and resource (指定的ACL策略, the specified ACL policy), and enumerates the mutable attributes, so an agent can distinguish it from the Create/Delete/List ACL siblings. It does not explicitly name a sibling tool or state a routing rule, which keeps it below 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?

Usage is only implied by the verb 'modify' and by the constraint that only acl_name/acl_type/acl_value may change. There is no explicit guidance on when to pick this over roma__UpdateAclStrategyV2 or apig__CreateAclStrategyV2, and no stated prerequisites such as needing an existing acl_id from ListAclStrategiesV2.

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