Skip to main content
Glama
discord-mcp

discord-mcp

members_add_role

Idempotent

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

NameRequiredDescriptionDefault
role_idYesRole to add
user_idYesMember to grant the role to
guild_idYesGuild containing the member
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare idempotentHint=true and destructiveHint=false, and the description's 'Idempotent - re-adding is a no-op' merely restates that. The 'Returns' line duplicates the existing output schema, so little genuinely new behavioral context is added; nothing about permission requirements (a role grant is privileged) or how `audit_reason` affects the call.

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?

Front-loaded purpose, then a labeled when/when-not block, then the return shape. Every line is scannable and nothing is padded.

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

Completeness4/5

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

With a 4-parameter tool, full schema coverage, annotations, and an output schema, the description covers purpose, selection guidance, and return shape adequately. It stops short of mentioning privilege/hierarchy prerequisites for granting a role, which is the one gap an agent could trip over.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already carries the semantics of guild_id, user_id, role_id and audit_reason. The description adds no format, constraint, or behavioral detail (e.g. hierarchy/permission limits) beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb plus resource plus cardinality: 'Add a single role to a guild member.' The word 'single' implicitly separates it from `members_bulk_add_role` and `members_modify`, so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

Explicitly gives a when-to-use case ('Targeted role grant (e.g. give @verified to a single user)') and a when-NOT-to-use case routing to `members_modify` with the `roles` field. That is exactly the routing information an agent needs to avoid the destructive full-replace sibling.

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