Skip to main content
Glama

Create roles

create_roles
Idempotent

Use this when the user wants new roles (created without permissions). Do not use for changing an existing role; use edit_role. 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>",
      "roles": "<roles>"
    },
    "name": "create_roles"
  }
}

Input Schema

NameRequiredDescriptionDefault
rolesYesRoles to create.
guild_idYesDiscord server ID, as returned by list_my_servers.

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 readOnly=false, destructive=false, idempotent=true. The description adds the highest-value behavior: the write is deferred to a pending card and nothing changes on Discord until apply_card is called. It doesn't cover permission requirements or partial/limit failure behavior (max 25), but the staging semantics are the critical disclosure.

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 trigger condition, then exclusion, then the state-change consequence. No 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?

Complete for a simple two-parameter creation tool with 100% schema coverage and no output schema: it says what it creates, what it does not do, and when the effect lands. Would reach 5 by noting the 25-role cap or the need for guild-level permission.

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% and every field including nested role fields is documented, so the schema carries the load. The description adds the semantic constraint that roles are created without permissions, which isn't expressible in the schema. Baseline 3 holds.

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?

Specific verb+resource (create roles), with a scope qualifier (created without permissions) and a named sibling it is not (edit_role). An agent can distinguish it from edit_role and apply_card immediately.

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?

Explicit when-to-use ('user wants new roles'), explicit when-not ('changing an existing role'), and the alternative named (edit_role), plus the crucial workflow note that the change is staged until apply_card.

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