Skip to main content
Glama

Archive Chat

wa_archive_chat

Archive a chat (hide it from the main chat list), or unarchive it by passing archive=false. Works on a 1:1, a group or a channel. Fire-and-forget: there is no delivery confirmation. Note that a new incoming message un-archives the chat, exactly as WhatsApp normally does.

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>"
    },
    "name": "wa_archive_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesthe chat to archive or unarchive — a phone number in international form (digits only) for a 1:1, or a group/channel JID (…@g.us for a group, …@newsletter for a channel)
archiveNotrue to archive (the default when omitted), false to unarchive
account_idNothe account, as returned by wa_list_accounts; omit it when the workspace has only one account

Output Schema

NameRequiredDescriptionDefault
statusYesok (queued to the bridge) or refused (nothing was done)
refusalNopresent only when status is refused

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false; the description adds substantive behavior beyond that: the call is fire-and-forget with no delivery confirmation, and a new incoming message automatically un-archives the chat. Both facts materially affect how an agent should verify results and set expectations, and neither contradicts the 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 short sentences, front-loaded with the primary action and effect, then the unarchive variant, then behavioral caveats. Every clause carries information; the parenthetical definition of archiving and the WhatsApp-normal note both earn their 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 3-parameter mutation tool with an output schema and annotations present, the description supplies everything an agent needs: what it does, the inverse mode, which chat identifiers apply, and the notable side effect of auto-unarchive. Return-value details are correctly left to the output schema.

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 chat, archive, and account_id are already fully documented in the schema. The description restates the archive=false semantics and the chat-type targeting but adds no syntax, format, or edge-case detail beyond what the structured fields provide, so 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 ('Archive a chat'), immediately clarifies the effect ('hide it from the main chat list'), and covers the inverse operation ('unarchive it by passing archive=false'). It also scopes applicability to 1:1, group, and channel, so an agent can tell this apart from neighboring chat operations 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 clear context for when to call it (to hide a chat from the main list) and how to achieve the opposite effect via archive=false. It does not explicitly contrast with potentially confusable siblings such as wa_leave_chat or wa_delete_message, which an agent might otherwise consider for 'getting rid of' a chat.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources