Skip to main content
Glama

unpin_message

Idempotent

Remove the pin from a message in a thread while keeping the message intact; returns whether a pin was removed and emits an event only when one existed.

Instructions

Remove a message's pin in a thread. Returns {removed: true} and appends a MessageUnpinned event only when the message was pinned; otherwise {removed: false} and no event. The message itself stays in the thread, and a pin set by another member can be removed too. See the pins with list_pins and pin with pin_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": "unpin_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesUUID of the thread the message is pinned in. You must be able to read it.
message_idYesUUID of the pinned message to unpin.

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 pinned message to unpin."
    • addedInput schema / properties / thread_id / description
      Added value: +"UUID of the thread the message is pinned in. You must be able to read it."
  2. First observedv479.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses conditional return values ({removed: true} vs {removed: false}), that a MessageUnpinned event is emitted only on an actual removal, that the message itself survives, and that another member's pin may be removed. These are exactly the mutation semantics an agent needs before calling.

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: the action first, then the outcome contract, then the cross-references and permission requirement. Nothing is redundant and the key behavior is front-loaded.

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 an idempotent, non-destructive mutation with no output schema, the description covers the return shape, the side effect, the no-op case, and the auth prerequisite. An agent has everything needed to call it correctly and interpret the result.

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%, so both UUID parameters are already fully documented in the schema. The description adds no syntax, format, or edge-case detail about thread_id or message_id, so the baseline of 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?

The description opens with a specific verb and resource, "Remove a message's pin in a thread," which is unambiguous and immediately distinguishes it from pin_message and list_pins.

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?

It routes the agent to list_pins for seeing pins and pin_message for the inverse operation, and states the workspace:write requirement. It does not spell out an explicit when-not-to-use condition, so it stops just short of the top score.

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