Skip to main content
Glama

discord_set_nickname

Idempotent

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

NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
user_idYesDiscord user ID (snowflake) of the member.
guild_idYesDiscord server (guild) ID (snowflake).
nicknameYesNew nickname (max 32 characters), or null to clear it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed4 schema fields changedv2.0.0
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / nickname / anyOf
      Added value: +[
      +  {
      +    "maxLength": 32,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / nickname / type
      Removed value: -"string"
    • addedInput schema / properties / user_id / pattern
      Added value: +"^\\d{17,20}$"
  3. Changed4 schema fields changedv1.6.0
    • addedInput schema / properties / guild_id / description
      Added value: +"Discord server (guild) ID (snowflake)."
    • changedInput schema / properties / nickname / description
      Previous value: -"New nickname, or null to clear."New value: +"New nickname (max 32 characters), or null to clear it."
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason recorded in the server audit log."
    • addedInput schema / properties / user_id / description
      Added value: +"Discord user ID (snowflake) of the member."
  4. Addedv1.5.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare this is a non-read-only, idempotent, non-destructive, open-world mutation, and the description is consistent with that. Beyond the annotations it adds genuinely useful behavior: the Manage Nicknames / Change Nickname permission requirement, the constraint that the target's highest role must sit below the bot's, and that the reason lands in the audit log. It stops short of describing failure modes or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action and the clearing semantics before the permission and hierarchy preconditions. No sentence is filler, and the ordering matches how an agent would need the information at call time.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation with full schema coverage, no output schema, and annotations covering the safety profile, the description supplies everything an agent needs: what it does, how to clear, what permissions are required, and the role-ordering precondition. No material gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by clarifying that the string literal 'null' is also accepted as a clear signal, which the schema's anyOf does not spell out. It also reinforces that reason is written to the audit log, though that duplicates the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Set or clear a member's server nickname.' That is clearly distinguishable from siblings such as discord_set_role_permission or discord_set_member_permission, which operate on different resources, so an agent can select this tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the two modes of use (set vs. clear) and gives the concrete condition for clearing: pass null or the string 'null'. It also states the required permissions and the role-hierarchy precondition for renaming another member. It does not name an explicit alternative tool or a when-not-to-use case, which keeps it just below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools