Skip to main content
Glama

workspace__UpdateAccessPolicy

Update a specified Workspace access policy to enable or disable IP whitelisting, block all IPs, or add and remove allowed IP addresses within a project.

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": {
      "access_policy_id": "<access_policy_id>",
      "project_id": "<project_id>"
    },
    "name": "workspace__UpdateAccessPolicy"
  }
}

Input Schema

NameRequiredDescriptionDefault
is_enableNoIP白名单是否生效。
project_idYes项目ID。
is_block_allNoIP白名单是否禁止所有Ip接入。
ip_white_listNo策略的ip列表。
operation_typeNo操作类别。
access_policy_idYes接入策略id。

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. Beyond the word 'update', it says nothing about whether the change is idempotent, what happens to policy fields not supplied, whether the operation replaces or merges the IP whitelist, or what the caller receives.

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 single sentence is front-loaded and free of padding, which is good. It is nevertheless under-specified rather than concise — brevity here costs information rather than saving it.

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 six-parameter mutating tool with no annotations and no output schema, so the description should explain effects and return behavior. It instead provides one generic sentence, leaving an agent unable to predict the result of an update call.

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%, so all six parameters, including the operation_type enum and the nested ip_white_list fields, are already documented in the schema. The description adds no meaning beyond that, which meets the baseline-3 expectation for high-coverage schemas.

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 names a specific verb (更新/update) and resource (接入策略/access policy), so the basic operation is identifiable. However, it does not distinguish this tool from close siblings like workspace__UpdateAccessPolicyObjects, which also modifies an access policy, leaving the agent to guess which one applies.

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 guidance on when to use this tool versus the sibling Create/List/BatchDelete access-policy tools, nor any stated preconditions such as permissions or existing-policy requirements. The only context is the '[WORKSPACE]' prefix, which merely tags the service family.

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