Skip to main content
Glama

discord_pin_message

Idempotent

Pin or unpin a channel message using a boolean flag. Requires Pin Messages and Read Message History permissions, and supports up to 250 pins per channel.

Instructions

Pin or unpin a message in a channel, controlled by the pin flag. Requires the Pin Messages and Read Message History permissions (Pin Messages is a dedicated permission since early 2026, separate from Manage Messages). A channel holds at most 250 pins. Idempotent: pinning an already-pinned message (or unpinning an unpinned one) has no additional effect. List the pins with discord_fetch_pinned_messages.

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": {
      "channel_id": "<channel_id>",
      "message_id": "<message_id>",
      "pin": "<pin>"
    },
    "name": "discord_pin_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinYestrue to pin the message, false to unpin it.
channel_idYesID (snowflake) of the channel or thread containing the message.
message_idYesID of the message to pin or unpin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / message_id / pattern
      Added value: +"^\\d{17,20}$"
  3. Changed3 schema fields changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel or thread containing the message."
    • addedInput schema / properties / message_id / description
      Added value: +"ID of the message to pin or unpin."
    • changedInput schema / properties / pin / description
      Previous value: -"true to pin, false to unpin."New value: +"true to pin the message, false to unpin it."
  4. Addedv1.5.0
  5. Removedv1.0.0
  6. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotency and non-destructiveness, but the description adds real context beyond them: required permissions (Pin Messages + Read Message History), the recent split of Pin Messages from Manage Messages, and the 250-pin-per-channel ceiling. It does not describe the response shape, which is a minor gap with no output schema.

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?

Four short sentences with no filler; the operation and control flag come first, followed by prerequisites, a hard limit, idempotency, and the related tool. Every sentence carries distinct information.

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 three-parameter action tool with no output schema, the definition covers permissions, quota limits, idempotency, and the follow-up tool. Only the return value ('what does a successful pin return') is left unspecified, which is a small omission.

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 each parameter already carries a description, including the channel-or-thread nuance. The description's statement that the pin flag controls the operation restates the schema rather than adding format or edge-case detail.

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 pair and resource ('Pin or unpin a message in a channel') and immediately explains the mechanism ('controlled by the pin flag'). This cleanly separates it from siblings like discord_edit_message or discord_delete_message, and it names the companion listing tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear guidance on how to select the operation (pin=true vs false) and an explicit pointer to discord_fetch_pinned_messages for inspecting existing pins. It does not spell out exclusions such as per-thread pin differences, but the context needed to choose this tool is present.

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

Deploy Server

Other Tools