Skip to main content
Glama

wa_list_add

Add a WhatsApp chat or group to an existing list by name or ID; returns a plan unless confirmation and action permissions are enabled.

Instructions

Adds a chat (phone number, jid or name; a group by jid) to a list (name or id, from wa_list_lists). Companion only; lists resolve by name or id from the companion. Without confirm=true it only returns the plan; runs with confirm=true AND WA_ALLOW_ACTIONS=1. The answer has verified=true once the companion's list state shows the change. Only when the owner explicitly asks.

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": {
      "list": "<list>",
      "chat": "<chat>"
    },
    "name": "wa_list_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
listYes
confirmNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false, openWorld=true), the description discloses the dry-run default, the environment-variable gate for real execution, the companion-only scope, and the verified=true signal in the response that confirms the list state changed. These are exactly the behavioral facts an agent cannot infer from the structured fields.

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?

Front-loaded with the action, then prerequisites, then verification. It is dense but nearly every clause carries information; the only slight waste is restating list resolution twice ('from wa_list_lists' and 'lists resolve by name or id from the companion').

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 gated mutation tool with an output schema, the definition covers scope, owner-authorization requirement, dry-run behavior, execution gate, and the success signal. Nothing an agent needs in order to call it safely under the right conditions is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description compensates by defining all three parameters: chat formats, list formats and provenance, and confirm's plan-versus-execute semantics. It stops short of noting confirm's default of false or restating the required/optional split, so it's very good but not exhaustive.

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 (add a chat to a list) and enumerates the accepted identifier forms for both the chat (phone number, jid or name; group by jid) and the list (name or id). It also points to wa_list_lists as the source of valid list names, which is enough to separate it from wa_list_remove and wa_list_create without opening their schemas.

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

Usage Guidelines5/5

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

Explicitly gates use: 'Companion only' and 'Only when the owner explicitly asks', then explains the two-step invocation (plan without confirm=true, execution with confirm=true AND WA_ALLOW_ACTIONS=1). That is a clear when-to-use, when-not-to-use, and prerequisite statement in a single place.

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