discord_member_role
Assign or remove a Discord server role from a member by specifying guild, user, role, and action. Requires the role to be below the bot's highest role.
Instructions
Give a role to a member, or take it away. The role must be below the bot's highest role.
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": {
"guild_id": "<guild_id>",
"user_id": "<user_id>",
"role_id": "<role_id>",
"action": "<action>"
},
"name": "discord_member_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| role_id | Yes | Role ID | |
| user_id | Yes | User ID | |
| guild_id | Yes | Server (guild) ID |