Skip to main content
Glama

Delete a role

delete_role
Idempotent

Use this when the user wants a role deleted. The card must then be confirmed on aiguild.me. Do not use for taking a role from members; use set_member_roles. 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": "delete_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe role name.
guild_idYesDiscord server ID, as returned by list_my_servers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the two-step workflow: the change is only staged on 'the pending card for this server', external confirmation happens on aiguild.me, and nothing mutates on Discord until apply_card runs. This actually resolves a potential surprise, since destructiveHint=false on a delete tool would otherwise look wrong to an agent.

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, zero filler, with the usage condition front-loaded and the exclusion clause following immediately. Every sentence carries distinct information: purpose, exclusion, and deferred-mutation mechanics.

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 two-parameter tool with full schema coverage and no output schema, the description covers the important lifecycle context (pending card, confirmation, apply_card). Minor gaps remain: what happens if the named role does not exist, and whether repeated calls before apply_card are deduplicated, which matters given idempotentHint=true.

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 both parameters (role name and guild_id from list_my_servers) are already documented. The description adds no syntax, matching rule, or ambiguity guidance (e.g. duplicate role names), so it sits at the baseline established by the rich schema.

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 and resource ('role deleted') in the very first sentence and immediately distinguishes it from the look-alike sibling set_member_roles, which also touches roles. An agent can select this over edit_role or set_member_roles without opening any 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?

Gives an explicit when-to-use ('when the user wants a role deleted'), an explicit when-not-to-use ('Do not use for taking a role from members'), and names the alternative tool to use instead. This is the full when/when-not/alternative triad.

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