Skip to main content
Glama

workspace__CreateAccessPolicy

Creates an access policy for a project, defining IP whitelist or blacklist rules and applying them to users or user groups.

Instructions

[WORKSPACE] 该接口用于创建接入策略。

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": {
      "policy": "<policy>",
      "project_id": "<project_id>"
    },
    "name": "workspace__CreateAccessPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYes接入策略信息。
project_idYes项目ID。
policy_objects_listNo策略应用对象列表。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only restates the create operation. It does not disclose that creation is a mutation with side effects, what permissions or project scoping are required, what the defaults are (is_enable=false, is_block_all=false), or how the nested policy and policy_objects_list interact.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short, front-loaded sentence with no filler words. That efficiency is not a virtue here: the brevity comes from under-specification rather than from editing out unnecessary content.

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

Completeness2/5

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

This is a complex mutation with three parameters, two of them nested, including precedence rules among fields, and it has no annotations and no output schema. The description does not mention any of this, so an agent gains nothing about how to call it beyond the tool name.

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 the nested policy object documents ip_list, is_enable, is_block_all, blacklist_type, and access_control_type in detail, so the schema already carries parameter meaning. The description adds nothing on top of that, which is the baseline 3 given high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (创建, create) and resource (接入策略, access policy), which is enough to distinguish this tool from sibling operations such as workspace__UpdateAccessPolicy. However, it does not say what kind of access policy is created: an IP whitelist, a blacklist, or objects applied to it. The '该接口用于' prefix is boilerplate and adds nothing.

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 gives no guidance on when to use this tool versus workspace__UpdateAccessPolicy or CreateVpnAccessPolicy, and no prerequisite or idempotency guidance. An agent can infer 'use this to create' from the name, but everything else is left to the reader.

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