Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Remove Roles from User

remove_user_roles
Destructive

Removes assigned roles from a Secret Server user by calling DELETE /api/v1/users/{id}/roles; Secret Server blocks removals that would lock out role administration.

Instructions

Remove roles from a Secret Server user.

Calls DELETE /api/v1/users/{id}/roles with {"roleIds": [...]}. Secret Server refuses any role removal it calculates would lock the signed-in account out of role administration (API_RoleAdministrationNoLockout). It counts only rights granted through Secret Server roles, so an account that is an administrator through the Delinea Platform can add roles but not remove them. Secret Server REST API reference: https://docs.delinea.com/online-help/secret-server/api-scripting/rest-api/rest-api-reference-download/index.htm

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": {
      "user_id": "<user_id>",
      "role_ids": "<role_ids>"
    },
    "name": "remove_user_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes
role_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=false, yet the description still adds real substance: the exact DELETE call, the JSON body shape, the API_RoleAdministrationNoLockout refusal, and the subtle case where Platform-level administrators can add but not remove roles. That is exactly the kind of operational behavior an agent cannot get from the annotations.

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?

The core action and endpoint are front-loaded, and the lockout caveat is stated tightly. The trailing documentation URL is mildly expendable but is short and plausibly useful for a mutation with non-obvious authorization rules.

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

Completeness4/5

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

For a two-parameter destructive tool with no output schema, the description covers endpoint, payload, and the key failure mode. It stops short of saying what a successful response looks like or whether removing an already-absent role is a no-op or an error, which matters given idempotentHint=false.

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 0%, so the description must carry the load, and it only partially does: '{"roleIds": [...]}' and '{id}' tell the agent which parameter goes in the path versus the body. It does not explain where user_id or role_ids come from, whether role_ids replaces or merely subtracts from existing roles, or what happens with unknown IDs.

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

Purpose5/5

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

States a specific verb and resource — 'Remove roles from a Secret Server user' — plus the exact endpoint it hits. The pairing of 'roles' with 'user' cleanly separates it from remove_group_roles and remove_user_from_groups in the sibling list.

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?

The description gives an important precondition (the caller must hold role administration through Secret Server roles, not just the Delinea Platform) but never states when to pick this tool over add_user_roles, remove_group_roles, or remove_platform_role_members. Usage is implied by the resource names rather than explicitly routed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.