Assign Role
assign_roleGrant a Drupal user a specific role using their user ID (UID) to control permissions and access.
Instructions
Assign a role to a user.
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": {
"uid": "<uid>",
"role": "<role>"
},
"name": "assign_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| role | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||