Skip to main content
Glama
DelineaMCP

DelineaMCP

Official
by DelineaXPM

Manage Roles

role_management
Destructive

Create, update, or query roles to manage role definitions and enabled status in DelineaMCP, with write actions confirmed by follow-up retrieval.

Instructions

Create, update or query roles.

Parameters

action: One of "list", "get", "create" or "update". role_id: Identifier of the role to operate on. Required for "get" and "update". data: JSON body used with "create" and "update". params: Optional query parameters for "list".

When action is "create", data must contain the required keys name and enabled defining the role's name and active state. When action is "update", you need to do a get first, update the relevant fields and post everything back

"create" and "update" actions issue a follow-up GET request to confirm the new role state. The function returns {"result": ..., "verification": ...} where result is the response from the write operation and verification is the data retrieved from the subsequent GET call.

Returns

dict Dictionary containing result from the write call and verification from the subsequent GET.

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

Input Schema

NameRequiredDescriptionDefault
dataNo
actionYes
paramsNo
role_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, but the description adds genuinely non-obvious behavior: create/update trigger a follow-up GET and return a compound {result, verification} payload. It also hints at full-replacement update semantics via 'post everything back'. It does not mention permission requirements or what happens on verification failure.

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 structure is front-loaded and scannable: a purpose line, a parameter block, conditional rules, then behavioral notes. There is mild redundancy where the follow-up GET behavior is stated twice – once in prose and again in the Returns block – but no sentence is outright waste.

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 four-parameter mutating tool with no output schema and no schema descriptions, the definition covers the action enum, conditional parameter requirements, the update workflow, and the shape of the return value. The remaining gaps – which role scope this operates on and what authorization is needed – are the main omissions.

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 burden, and it does document all four parameters: the four allowed action values (absent from the schema's bare string), conditional requirements for role_id, the purpose of data and params, and the required name/enabled keys for create. The only gap is that the contents accepted by params for list are never described.

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 description opens with a specific verb set and resource ('Create, update or query roles'), so an agent immediately knows the operation class. However, it does not distinguish this tool from the several role-related siblings (group_role_management, platform_role_management, user_role_management), leaving ambiguity about which role namespace this manages.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear per-action context: role_id is required for get/update, data for create/update, params for list, and it explicitly prescribes the update workflow ('do a get first, update the relevant fields and post everything back'). It stops short of stating when this tool should be chosen over its sibling role-management tools or any preconditions/exclusions.

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