Skip to main content
Glama

Send message with buttons

send_buttons
Destructive

Sends a text message with up to three reply, link, call, or copy buttons for menus, confirmations, and calls to action, keeping one button type per message.

Instructions

Sends a text message with up to 3 buttons. Each button is one of: reply (text + id), link (text + url), call (text + phone) or copy (text + copy code). Use for menus, confirmations and calls to action. WhatsApp may show an 'open on your phone' notice when reply buttons are mixed with link/call/copy buttons, so keep one kind per message. Only message people who have agreed to hear from you (opt-in). ZapZap uses the WhatsApp Web/QR channel, which is not Meta's official API: unsolicited or repetitive messages get reported and WhatsApp can restrict or ban the number. Never send bulk or unrequested messages, and confirm text and recipient with the user first if there is any doubt. A sent message cannot be un-sent reliably, so do not retry a send after a timeout without checking the chat history.

Input Schema

NameRequiredDescriptionDefault
textYesMessage text.
footerNoOptional footer text.
numberYesRecipient phone with country code, digits only (e.g. 5511999999999 for Brazil). For groups use the group JID ending in @g.us.
buttonsYes1 to 3 buttons.
digitandoNoShow an automatic 'typing...' indicator before sending (default on; reduces block risk). Leave unset unless speed matters.
image_urlNoOptional header image URL.
instance_idNoZapZap instance id (a connected WhatsApp number). Optional when ZAPZAP_INSTANCE_ID is configured; otherwise call list_instances first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructive=true, openWorld=true and idempotent=false, but the description adds far more: the non-official WhatsApp Web/QR channel, the ban/restriction risk from unsolicited or repetitive messages, that sends cannot be reliably un-sent, and that a timeout must be reconciled against chat history before retrying. That is exactly the operational context the annotations cannot express.

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?

Purpose and the 3-button limit are front-loaded, then safety constraints follow in a logical order. It is dense with useful rules rather than filler, though the risk/ban paragraph and the button-type enumeration together make it long enough that the core 'what it does' line gets diluted.

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 destructive, open-world mutation with 7 params and no output schema, the definition covers safety, opt-in, instance selection (via schema) and retry semantics thoroughly. The one real gap is that it never says what comes back (e.g. a message id usable with edit_message, delete_message or react_to_message), which an agent needs to continue a workflow.

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 coverage is 100%, so the baseline is 3; the description earns above that by explaining which nested fields pair with which button type (reply = text+id, link = text+url, call = text+phone, copy = text+copy code) and by adding the cross-parameter rule that button kinds should not be mixed. The "up to 3" restates maxItems, but the type-to-field mapping is genuine value.

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 ("Sends a text message with up to 3 buttons") and immediately enumerates the four button kinds, which cleanly separates it from send_text, send_media and send_poll. An agent can pick the right send tool 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 Guidelines5/5

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

Gives concrete use cases ("menus, confirmations and calls to action"), an explicit constraint ("keep one kind per message"), an opt-in precondition, and a do-not-retry-after-timeout rule. It even explains why the constraint exists (the "open on your phone" notice), so the guidance is actionable rather than advisory.

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