Skip to main content
Glama

discord_pin_message

Idempotent

Pin important messages to a channel or unpin them as needed, using a boolean flag to control the action. Handles the 50-pin limit and is idempotent.

Instructions

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

Input Schema

TableJSON 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.5/5.0
Behavior5/5

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

Annotations already carry readOnlyHint=false, destructiveHint=false, and idempotentHint=true, and the description meaningfully extends these: it details the auth requirement (dedicated Pin Messages permission, distinct from Manage Messages), the operational limit (50 pins max), and precisely what idempotency means here (pinning an already-pinned or unpinning an unpinned message has no effect). No contradiction with annotations.

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 tight sentences (~60 words) with zero filler. The core behavior and controlling flag are front-loaded, followed by permission, limit, and idempotency details in decreasing order of importance. Every sentence earns its place.

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 simple 3-parameter mutation with full schema coverage and strong annotations, the description covers behavior, mode selection, permission prerequisites, capacity limits, and idempotency semantics. No output schema exists, but pin/unpin operations have trivial success responses, so return-value documentation is not a meaningful gap.

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 the baseline is 3 even without parameter info in the description. The description's 'controlled by the pin flag' restates the schema's 'true to pin the message, false to unpin it' rather than adding new meaning. The schema also already documents the snowflake patterns and thread support, so the description adds no value beyond it.

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?

The description opens with a specific verb+resource pair ('Pin or unpin a message in a channel') and immediately clarifies the dual-mode behavior via the pin flag. This distinguishes it from siblings like discord_delete_message, discord_send_message, and discord_fetch_pinned_messages without needing to inspect the schema.

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?

Gives clear operational context: the Pin Messages permission is a dedicated permission separate from Manage Messages, channels cap at 50 pins, and the operation is idempotent. It does not explicitly name alternatives (e.g., discord_fetch_pinned_messages for reading pins) or state when-not-to-use conditions, but the context is substantial enough to guide correct invocation.

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