Skip to main content
Glama

wa_pin_message

Pin or unpin a WhatsApp chat or group message sent by the connected number; set type 1 to pin for all (default) or 2 to unpin for all.

Instructions

Pin (or unpin) a message in a WhatsApp chat or group. The message must have been sent by the connected number (fromMe). type: 1 = pin for all (default), 2 = unpin for all.

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": {
      "jid": "<jid>",
      "message_id": "<message_id>"
    },
    "name": "wa_pin_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
jidYesChat/group JID the message lives in
typeNo1 = pin for all (default), 2 = unpin for all
message_idYesMessage ID (stanza id) of the message to pin

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the fromMe ownership constraint and the meaning of type values, but it does not state whether group pinning requires admin rights, what happens on failure, or whether the operation is reversible for other participants.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short, front-loaded sentences with no filler; the ownership constraint appears before the type details. The only minor inefficiency is that the type enumeration repeats what the schema already states.

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 three-parameter tool with full schema coverage and no output schema, the description covers the key constraint and the mode switch adequately. It could be more complete by noting group admin requirements or failure behavior, but nothing essential for basic invocation is missing.

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 schema already documents jid, message_id, and type. The description's type explanation (1 = pin for all, 2 = unpin for all) duplicates the schema's own type description rather than adding new meaning, 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 (pin/unpin) and resource (a message in a WhatsApp chat or group), which is clearly distinct from sibling message operations like wa_delete_message or wa_edit_message. An agent can identify the action without opening 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 a clear prerequisite that the message must have been sent by the connected number (fromMe), which constrains when the tool is applicable. However, it does not name alternatives or explicitly describe when to prefer pinning versus other message-management siblings, leaving some routing to inference.

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