Skip to main content
Glama

pin_message

Idempotent

Pin or unpin a specific message in a target chat, with an option to notify participants when pinning. Use it to manage pinned messages and control whether chat members receive a notification.

Instructions

Pin or unpin a message in a destination chat, optionally notifying participants.

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": {
      "chat": "<chat>",
      "message_id": "<message_id>"
    },
    "name": "pin_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNo`true` to pin, `false` to unpin (default `true`).
chatYesTarget chat reference.
notifyNoNotify chat members when pinning (default `false`).
message_idYesMessage ID to pin or unpin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, readOnlyHint=false, and openWorldHint=true, so the safety profile is covered. The description adds that participants can optionally be notified, which is real behavioral context, but it omits the permission requirements for pinning and what happens on unpin (e.g., whether a notification is ever sent).

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?

A single front-loaded sentence with the action first and the optional modifier second; no filler, no redundancy with 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 simple four-parameter toggle with full schema coverage and annotations covering idempotency and destructiveness, the description is nearly sufficient. The only meaningful gap is the lack of any prerequisite note about needing sufficient chat permissions to pin.

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 defaults for pin and notify and the meaning of chat and message_id are already documented. The description's 'optionally notifying participants' only restates the notify parameter and adds no format, constraint, or edge-case detail beyond the schema, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb pair (pin/unpin) and the resource (a message in a destination chat), which is enough for an agent to distinguish it from siblings like edit_message or send_message. It stops short of explicitly naming a sibling or contrasting scope, which keeps it from a 5.

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

Usage Guidelines2/5

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

There is no when-to-use vs when-not guidance, no mention of prerequisites such as needing admin rights in the chat, and no pointer to alternatives (e.g., editing a message instead of pinning it). The use case is only implied by the verb.

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