Manage Roles
role_managementCreate, 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
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| action | Yes | ||
| params | No | ||
| role_id | No |