Skip to main content
Glama

Edit a role

edit_role
Idempotent

Use this when the user wants to rename a role or change its color, display or mention setting. Do not use for its permissions; use set_role_permissions. Adds the change to the pending card for this server; nothing changes on Discord until apply_card.

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>",
      "role": "<role>"
    },
    "name": "edit_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe role name.
colorNo#RRGGBB
hoistNoDisplay separately.
guild_idYesDiscord server ID, as returned by list_my_servers.
new_nameNoNew name.
mentionableNoAnyone can mention it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds genuinely non-obvious behavior: the edit is staged on a pending card and nothing reaches Discord until apply_card. It stops short of stating failure modes (nonexistent role) or whether multiple field changes are batched atomically.

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?

Three short sentences, front-loaded with the positive trigger, then the exclusion, then the side-effect. Every sentence carries distinct information and none is filler.

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?

For a six-parameter mutation tool with no output schema, the description covers the trigger, the sibling alternative, and the pending-card/apply_card workflow. The only gaps are how the required 'role' parameter identifies the target and whether concurrent edits on one card are allowed, both minor.

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 100%, so every parameter including guild_id, role, new_name, color, hoist and mentionable is already documented in the schema. The description's mention of color, display and mention settings merely restates those fields in prose and adds no format or identity detail (e.g., whether 'role' accepts a name or an ID). Baseline 3 applies when the schema carries the semantics.

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 names a specific verb/resource pair ('rename a role or change its color, display or mention setting') and enumerates exactly which attributes are editable. It also explicitly separates itself from set_role_permissions, so an agent can tell the two apart without opening either 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?

It gives an explicit trigger ('Use this when the user wants to rename a role...') and an explicit exclusion with the correct alternative ('Do not use for its permissions; use set_role_permissions'). The apply_card dependency further tells the agent what must follow.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources