Skip to content

members_add_role

Category: members

Add a single role to a guild member.

  • Targeted role grant (e.g. give @verified to a single user).
  • Replacing the entire role set → use members_modify with roles.
FieldTypeRequiredDescription
guild_idstringyesGuild containing the member
user_idstringyesMember to grant the role to
role_idstringyesRole to add
audit_reasonstringnoReason recorded in audit log (X-Audit-Log-Reason header)

\{added, user_id, role_id\}. Idempotent — re-adding is a no-op.

FieldTypeRequiredDescription
addedbooleanyes
user_idstringyesDiscord user ID
role_idstringyesDiscord role ID
PropertyValue
Read-onlyno
Destructiveno
Idempotentyes
Open-worldyes
Confirmation requiredno

packages/mcp-core/src/tools/members/add_role.ts