Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Add Roles to User

add_user_roles
Idempotent

Assigns one or more roles to a Secret Server user by role ID, enabling access control management through the Delinea API.

Instructions

Assign roles to a Secret Server user.

Calls POST /api/v1/users/{id}/roles with {"roleIds": [...]}. 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": "add_user_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYes
role_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description usefully adds the underlying endpoint and request body shape, but it does not state a key behavioral question: whether the supplied role IDs are appended to existing roles or replace the user's current role set — important context for a mutation with idempotentHint=true.

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?

Two short sentences plus a documentation link, with the core action stated first and the implementation detail second. Efficient and front-loaded; the external reference URL is marginal but not disruptive.

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 two-parameter mutation with no output schema, the definition covers the action and the wire format but leaves notable gaps: the add-vs-replace semantics, error behavior for unknown role IDs, and what the call returns. Adequate but not complete for a write operation.

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 description coverage is 0%, so the description must compensate, and it largely does: it maps user_id to the URL path '{id}' and role_ids to the JSON body key 'roleIds' as an array, which is real semantic information absent from the bare schema. It stops short of giving format or validation details (e.g., invalid or duplicate role IDs).

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?

States a specific verb and resource: 'Assign roles to a Secret Server user.' An agent can tell this adds roles to a user rather than to a group or platform role. It does not explicitly differentiate itself from the sibling set (e.g., add_group_roles, remove_user_roles), but the verb+resource pair is unambiguous.

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?

Usage is only implied by the verb 'assign' — there is no explicit statement of when to use this versus add_group_roles, add_user_to_groups, or remove_user_roles, nor any prerequisite notes such as required permissions or whether the target user must already exist. The agent must infer the routing decision from sibling names alone.

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