members_remove_role
Removes a single role from a Discord guild member for targeted role revocation, such as revoking @verified without replacing their other roles.
Instructions
Purpose: Remove a single role from a guild member.
When to use: - Targeted role revocation (e.g. revoke @verified).
When NOT to use: - Replacing the entire role set → use members_modify with roles.
Returns: {removed, user_id, role_id}. Idempotent - removing a role the user does not have is a no-op.
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>"
},
"name": "members_remove_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | Role to remove | |
| user_id | Yes | Member to revoke the role from | |
| guild_id | Yes | Guild containing the member | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||