Skip to main content
Glama

pin_message

Pin a message within a thread to add it to the thread's pin list, record the pinner, reject messages outside that thread, and keep a single pin per message.

Instructions

Pin a message in a thread so it is listed by list_pins, recording the caller as the pinner. The message must belong to that thread, otherwise the call is refused. Pinning an already pinned message keeps a single pin. It emits a message_pinned event and returns {ok: true}. Reverse it with unpin_message. Requires workspace:write.

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

Input Schema

NameRequiredDescriptionDefault
thread_idYesUUID of the thread the message belongs to.
message_idYesUUID of the message to pin. It must be a message in thread_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv479.0.2
    • addedInput schema / properties / message_id / description
      Added value: +"UUID of the message to pin. It must be a message in thread_id."
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread the message belongs to."
  2. First observedv479.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: it discloses that a message_pinned event is emitted, that the caller is recorded as the pinner, that a non-member message is refused, and the exact return value {ok: true}. The one tension is that "Pinning an already pinned message keeps a single pin" reads as effectively idempotent, while the annotations declare idempotentHint=false; this is a mild inconsistency rather than a direct contradiction, since the event may still fire each call.

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?

Short declarative sentences, front-loaded with the purpose, then constraint, edge case, side effect, return value, inverse, and permission. Every sentence carries distinct information with no 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 two-parameter mutation with no output schema, the definition covers everything an agent needs: required permission, validation failure behavior, duplicate-pin semantics, emitted event, and the literal return shape. Nothing material is left to inference.

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 both parameters already carry UUID-format descriptions that explain the thread/message relationship. The description only restates that constraint and its failure mode ("the call is refused"), adding no new syntax or format detail, so the baseline 3 applies.

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 ("Pin a message in a thread") plus the observable effect ("so it is listed by list_pins"). It also names the reversal sibling unpin_message, so an agent can distinguish it from related tools without opening any 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 context for when to use it (to have the message appear in list_pins) and names the counterpart for undo (unpin_message). It also front-loads the workspace:write prerequisite, though it never states an explicit when-not-to-use condition beyond the membership constraint.

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