Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Get User Roles

get_user_roles
Read-only

List the roles assigned to a Secret Server user by user ID, with paging controls to retrieve additional role assignments.

Instructions

List the roles assigned to a Secret Server user.

Calls GET /api/v1/users/{id}/roles. Paged: take (default 50, capped at 500) and skip; total and hasNext in the response show whether more remain. 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>"
    },
    "name": "get_user_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNo
takeNo
user_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description goes further by disclosing pagination behavior — take defaults to 50 and is capped at 500, skip controls the offset, and the response carries total and hasNext. That is real behavioral context an agent needs to page correctly, and it is delivered without an output schema. It stops short of stating auth requirements or behavior on an unknown user_id.

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

Conciseness5/5

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

The purpose is front-loaded in one sentence, followed by the endpoint and then the paging constraints in a compact order that matches how an agent would use them. The API reference URL is the only element that does not earn its place, and it is a single trailing line.

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 three-parameter read tool with no output schema, the definition covers purpose, endpoint, pagination limits, and the response's continuation signals — enough to call it and iterate results correctly. The remaining gap is guidance on which sibling role tool to pick, which is not strictly required to invoke this one correctly.

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 0%, so the description must carry the load, and it does for the two non-obvious parameters: take is given a default (50) and a hard cap (500), and skip is identified as the paging offset. user_id is left unexplained, but its meaning is evident from the sentence about listing a user's roles.

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 — 'List the roles assigned to a Secret Server user' — and the 'Secret Server user' scoping implicitly separates it from get_platform_roles and get_group_roles. It does not name any sibling directly, so differentiation relies on the resource wording rather than explicit contrast.

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 implied by the resource phrasing (use it to see which roles a given user holds), but there is no explicit when-to-use/when-not guidance. Nothing tells the agent to prefer get_group_roles or get_platform_roles in another context, nor that add_user_roles/remove_user_roles are the mutation counterparts.

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