Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Manage Platform User Roles

platform_user_role_management
Destructive

Add, remove, or list users assigned to a Platform role by role ID, using user principal names or UUIDs to manage role membership.

Instructions

Add, remove, or list users assigned to a Platform role.

  • "list" -> POST /identity/api/Report/RunReport ID role_searchbyname (filtered to role_id). Returns the role's row; some tenants include a members column there. Callers can cross-reference with :func:search_users.

  • "add"/"remove" -> POST /identity/api/Roles/UpdateRole with body {"Name": <role_id>, "Users": {"Add": [...]}} or {"Users": {"Delete": [...]}}.

Mutation behaviour is discovery-driven: the tool attempts the documented endpoint and only falls back to a structured guidance error when the response is HTTP 404.

Parameters

action: "add", "remove" or "list". role_id: Platform role name/identifier. user_principals: For "add"/"remove": list of user principal names (e.g. "alice@tenant") or UUIDs. Accepts a JSON-encoded string too.

Returns

dict Report payload for "list"; {"result": ..., "verification": ...} for successful writes; {"error": ...} when the endpoint is unavailable on this tenant.

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>",
      "role_id": "<role_id>"
    },
    "name": "platform_user_role_management"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
role_idYes
user_principalsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=false) the description discloses which write endpoint is hit and with what body shape, that behavior is discovery-driven, and that a structured guidance error is returned only on HTTP 404. This is meaningful context an agent cannot get from the annotations, and nothing here contradicts destructiveHint=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?

The core purpose is front-loaded in one sentence, followed by action-level detail and Returns. The embedded endpoint/body examples and the reStructuredText section headers are useful but add bulk; the inconsistent indentation makes it slightly harder to scan than it needs to be.

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 3-parameter mutation tool with no output schema and no annotated return behavior, the description covers action semantics, endpoint targets, error/fallback behavior, and return shapes, which is close to sufficient. It stops short of stating required permissions or whether repeated "add"/"remove" calls are safe to retry (relevant given idempotentHint=false).

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 carries the full load and largely does: it fixes the allowed action values, explains role_id as a Platform role name/identifier, and specifies that user_principals accepts UPNs, UUIDs, or a JSON-encoded string and applies only to add/remove. The only omission is that a JSON-encoded string form of user_principals is not explained further (e.g. expected encoding).

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?

The opening line names a specific verb set and resource: add/remove/list users assigned to a Platform role. It also enumerates the three actions, so an agent can distinguish this from platform_role_management (which would manage the roles themselves) without opening the schema.

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?

Each action's underlying endpoint is described, which makes the effect of "add" vs "remove" vs "list" unambiguous, but there is no explicit statement of when to prefer this tool over the many similarly named siblings (user_role_management, platform_user_management, group_role_management) or any exclusion/prerequisite guidance. Usage must be inferred from the action definitions.

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