Skip to main content
Glama

roma__CreateAclStrategyV2

Creates a ROMA ACL strategy to permit or deny access by IP addresses or tenant domain names.

Instructions

[ROMA] 增加一个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": "roma__CreateAclStrategyV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
acl_nameYesACL策略名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。
acl_typeYes类型
acl_valueYesACL策略值,支持一个或多个值,使用英文半角逗号分隔
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
entity_typeYes对象类型:
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full behavioral burden, yet it says nothing about required permissions, whether the call is idempotent, what happens when acl_name already exists, whether the strategy is immediately effective, or what is returned. It does clarify the tricky DOMAIN semantics of acl_value, which is real value, but the mutation's side effects and failure modes remain undisclosed.

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, front-loaded with the verb and organized by parentheses around acl_type and the DOMAIN caveat, so no sentence is wasted. It is slightly run-on, and the lowercase permit/deny clashes with the schema example "PERMIT", but the structure is efficient.

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-required-parameter mutation with no annotations and no output schema, the description covers the ambiguous value semantics well but leaves out permissions, uniqueness/duplicate behavior, and the binding step needed to make the policy useful. It is adequate to call the tool correctly, not to predict its behavior.

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 would be 3; the description earns more by supplying the actual enum values for acl_type (permit/deny) and entity_type (IP/DOMAIN) that the schema only labels "类型" and "对象类型:", and by explicitly warning that DOMAIN pairs with a tenant name in acl_value rather than a network domain. This last point is a genuine trap-preventer not stated anywhere in 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 opens with a clear verb+resource ("增加一个ACL策略", create an ACL strategy) and immediately scopes it with the two key dimensions (acl_type permit/deny, entity_type IP/DOMAIN). It is distinguishable from the sibling UpdateAclStrategyV2 by the verb, but it never names or contrasts any sibling, 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?

There is no explicit when-to-use guidance, no prerequisites (e.g. that an instance_id/project_id must already exist), and no mention of when to choose this over apig__CreateAclStrategyV2 or when to bind the policy afterwards via CreateApiAclBindingV2. Usage is only implied by the verb "增加".

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