add_guild_member
Add a user to a Discord server using an OAuth2 access token; intended for bot applications.
Instructions
Add a user to a server with an OAuth2 access token (bot apps only). [PUT /guilds/{guild_id}/members/{user_id}]
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>",
"access_token": "<access_token>"
},
"name": "add_guild_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deaf | No | Server-deafen in voice | |
| mute | No | Server-mute in voice | |
| nick | No | ||
| flags | No | Flags bitfield | |
| roles | No | Role IDs (replaces the full list) | |
| reason | No | Reason (shown in the audit log) | |
| user_id | Yes | User ID | |
| guild_id | Yes | Server (guild) ID | |
| access_token | Yes | access token |