Skip to main content
Glama

Post a message

post_message
Idempotent

Use this when the user wants AiGuild to post a message in a channel, optionally mentioning a role, @everyone or @here (a card mentioning @everyone, @here or a role with more than 50 members must then be confirmed on aiguild.me). Do not use for role buttons; use post_role_buttons. 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>",
      "text": "<text>"
    },
    "name": "post_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe full message, 1900 characters at most.
channelYesThe channel name.
mentionNonone (default), everyone, here, or a role name.
guild_idYesDiscord server ID, as returned by list_my_servers.
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.9/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 staging model: the change is added to a pending card for the server and nothing changes on Discord until apply_card. It also flags that cards mentioning @everyone, @here or a role with more than 50 members must be confirmed on aiguild.me, which is a non-obvious side effect an agent must plan around.

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 sentences, front-loaded with the trigger and scoping, followed by the exclusion and then the staging behavior. The parenthetical is dense but carries the confirmation rule that would otherwise be lost, so no sentence is filler.

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

Completeness5/5

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

For a five-parameter mutation tool with no output schema, the definition covers trigger, exclusion, side effects, and the downstream apply_card step an agent must call. Nothing needed to invoke it correctly or explain the outcome to a user is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by explaining what the mention parameter can target and by attaching the confirmation threshold (role with >50 members) to that parameter. The remaining parameters, including allow_repeat's 30-minute window, are left to the schema, which already documents them.

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 (post a message in a channel) and immediately scopes it with the mention variants it supports. It also names the sibling it is not (post_role_buttons), so the agent can distinguish it 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?

Opens with an explicit trigger ('Use this when the user wants AiGuild to post a message in a channel') and gives a negative routing rule ('Do not use for role buttons; use post_role_buttons'). The alternative and the condition selecting it are both named.

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