Skip to main content
Glama

workspace__ChangeUserStatus

Locks, unlocks, or resets a Workspace user's password using the specified operation type, project ID, and user ID.

Instructions

[WORKSPACE] 该接口用于操作用户,包含三种操作:锁定、解锁和重置密码(重置密码建议使用/v2/{project_id}/users/{user_id}/random-password接口,在没有通知方式的情况下必须使用/v2/{project_id}/users/{user_id}/random-password接口)。

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": {
      "op_type": "<op_type>",
      "project_id": "<project_id>",
      "user_id": "<user_id>"
    },
    "name": "workspace__ChangeUserStatus"
  }
}

Input Schema

NameRequiredDescriptionDefault
op_typeYes操作类型,可选值为:
user_idYes用户ID。
project_idYes项目ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does useful work: it discloses that this is a state-changing user operation and that the password-reset branch has a notification dependency that makes this endpoint unsafe in some cases. It still omits what locking does to active sessions, whether unlock only reverses lock, and what permissions are required.

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 purpose is front-loaded, but the single sentence is convoluted: the parenthetical repeats the same long endpoint path twice and nests two conditions, making it hard to parse. The duplication could be collapsed into one clause without losing information.

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 3-required-param mutation tool with no annotations and no output schema, the definition covers the operation choice and the password-reset caveat but leaves the agent without effect/return information (does it return the updated user status?) or permission prerequisites. Adequate but with clear gaps.

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 the baseline is 3, but the description genuinely adds meaning: the op_type schema description is truncated ('可选值为:') and never lists the values, whereas the description maps LOCK/UNLOCK/RESET_PWD to lock, unlock, and reset password. It adds nothing for project_id or user_id, which the schema already covers.

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 the resource (users) and enumerates the three concrete operations supported: lock, unlock, and reset password, matching the op_type enum. It is clearly distinguishable from siblings like workspace__DeleteUser or workspace__CreateDesktopUser, though the verb 'operate' (操作用户) is generic until the operation list clarifies it.

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?

It gives explicit routing guidance for one branch: password reset should preferably use the random-password endpoint, and MUST use it when no notification method exists. However, the alternative is a raw REST path rather than a callable tool, and there is no guidance at all on when to choose LOCK vs UNLOCK or what preconditions apply (e.g., user must exist, must not already be locked).

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