members_add_role
Add a single role to a Discord guild member for targeted grants; use it when granting one role instead of replacing the member's entire role set.
Instructions
Purpose: Add a single role to a guild member.
When to use: - Targeted role grant (e.g. give @verified to a single user).
When NOT to use: - Replacing the entire role set → use members_modify with roles.
Returns: {added, user_id, role_id}. Idempotent - re-adding 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_add_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | Role to add | |
| user_id | Yes | Member to grant the role to | |
| 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 | |||