Skip to main content
Glama

discord_member_role

Assign or remove a Discord server role from a member by specifying guild, user, role, and action. Requires the role to be below the bot's highest role.

Instructions

Give a role to a member, or take it away. The role must be below the bot's highest role.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
role_idYesRole ID
user_idYesUser ID
guild_idYesServer (guild) ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, open-world mutation, so the safety profile is covered structurally. The description adds a genuinely useful hierarchy precondition, but says nothing about reversibility, idempotency, or failure modes when the role outranks the bot.

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?

Two short sentences, zero filler, with the core action stated first and the constraint second. Every sentence earns its place.

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

Completeness3/5

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

For a four-required-parameter mutation with no output schema, the description covers the operation and the key role-hierarchy constraint. However, it omits permission requirements, error behavior, and any indication of what the call returns, leaving gaps an agent would want closed.

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 coverage is 75% with role_id, user_id and guild_id documented inline and action constrained by an add/remove enum. The description adds no meaning beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: assign or remove a role from a member, which is clearly distinct from sibling role-management tools like discord_create_role, discord_edit_role and discord_delete_role. It does not name those siblings explicitly, but the assign/unassign scope is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied by the verb pair (add vs remove via the action parameter), and one real precondition is given: the role must sit below the bot's highest role. There is no explicit when-to-use vs alternatives guidance and no mention of required permissions such as Manage Roles.

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