Skip to main content
Glama

Post role buttons

post_role_buttons
Idempotent

Use this when the user wants a message where members pick roles with buttons or a menu (roles with moderation or admin permissions are refused). Do not use for giving a role directly; 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>",
      "channel": "<channel>",
      "buttons": "<buttons>"
    },
    "name": "post_role_buttons"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoSeveral roles, only one, a limited number, or permanent once taken.
limitNoFor rule limited: the maximum number of roles.
styleNobuttons (5 at most) or menu (up to 25).
titleNoMessage title.
buttonsYesOne button per role (existing, or created in this card).
channelYesThe channel name.
guild_idYesDiscord server ID, as returned by list_my_servers.
descriptionNoText under the title.
allow_repeatNoPost it even if the same message was already posted in this channel in the last 30 minutes. Only when the user asked for it twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / allow_repeat
      Added value: +{
      +  "description": "Post it even if the same message was already posted in this channel in the last 30 minutes. Only when the user asked for it twice.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, destructiveHint=false; the description goes further by disclosing that the change is staged on a pending card and that nothing happens on Discord until apply_card. It also discloses the permission-based refusal rule, which is not derivable from the schema. It stops short of covering the 30-minute repeat-posting guard (left to the allow_repeat param) or rate/response behavior, so not a full 5.

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 use case, then the exclusion, then the staging semantics — each sentence adds distinct information with no filler or restatement of the title.

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 9-parameter mutation tool with a fully documented schema and no output schema, the description covers the essentials: staging behavior, the apply_card dependency, and the permission exclusion. It does not explain the interaction between rule/limit/style or what the pending card contains, minor gaps given the rich schema.

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 already carries its own description; the description only adds the buttons-versus-menu framing that maps loosely to the style enum. No extra syntax, defaults, or interaction rules (e.g., how rule and limit combine) are contributed beyond the schema, which is the baseline-3 situation.

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 action (post a message where members pick roles via buttons or a menu) and immediately names the boundary case (roles with moderation/admin permissions are refused). It explicitly distinguishes itself from set_member_roles, which is the nearest sibling that could be confused with it.

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 condition (user wants role-picker buttons/menu) and an explicit when-not-to-use with the named alternative (use set_member_roles for direct role grants). It also states the workflow prerequisite implicitly by pointing at apply_card as the committing step.

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