Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Manage User Roles

user_role_management
Destructive

List, add, or remove roles for a specified user to control access permissions.

Instructions

Add or remove roles for a user.

Parameters

action: "get" to list current roles, "add" to assign new roles or "remove" to revoke them. user_id: Identifier of the target user. role_ids: List of role identifiers used with "add" and "remove".

Returns

dict JSON payload from the API.

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": {
      "action": "<action>",
      "user_id": "<user_id>"
    },
    "name": "user_role_management"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
user_idYes
role_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered elsewhere. The description does not build on that: it never warns that 'remove' immediately revokes access, whether the operation is reversible, or that 'get' is a safe read bundled into an otherwise destructive tool. The only added behavioral content is 'JSON payload from the API', which is nearly content-free.

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 front-loaded first sentence is good, but the numpy-style 'Parameters'/'Returns' block restates schema property names and spends a full section on 'dict / JSON payload from the API', which earns nothing. The docstring scaffolding is bulkier than the information it carries.

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 three-parameter destructive mutation with no output schema and zero schema-level descriptions, the parameter coverage is adequate but behavioral coverage is thin: no permission requirements, no note on partial failure when some role_ids are invalid, and no return-value detail beyond 'JSON payload'. An agent could call it, but would be guessing about consequences and error behavior.

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% and the 'action' property has no enum in the schema, so the description is the only source of valid values ('get', 'add', 'remove') — that is essential compensation. It also indicates role_ids is only meaningful for 'add' and 'remove', which the schema does not express. It stops short of stating role_ids is effectively required for add/remove while ignored for get.

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 opening line states a specific verb and resource ('Add or remove roles for a user'), and the parameter section clarifies the third mode ('get' to list current roles). An agent can tell this is a per-user role assignment tool rather than a role-definition or group tool, though it never names a sibling such as group_role_management or platform_user_role_management to draw the boundary.

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 guidance is provided only at the parameter level: which action value performs a list, an assign, or a revoke. There is no statement of when to prefer this tool over the numerous sibling role-management tools, and no prerequisites (e.g. that the user and roles must already exist, or that the caller needs admin rights).

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