discord_set_nickname
Set or clear a Discord server member's nickname, with an optional audit-log reason; pass null to remove the nickname.
Instructions
Set or clear a member's server nickname. Pass null (or the string 'null') to clear it. Requires the Manage Nicknames permission (or Change Nickname for the bot itself). To rename another member, their highest role must be below the bot's highest role. The reason is recorded in the audit log.
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>",
"nickname": "<nickname>"
},
"name": "discord_set_nickname"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional reason recorded in the server audit log. | |
| user_id | Yes | Discord user ID (snowflake) of the member. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| nickname | Yes | New nickname (max 32 characters), or null to clear it. |