Skip to main content
Glama
wuapidev

wuapi MCP server

Official
by wuapidev

Send a poll

send_poll

Send a WhatsApp poll with 2 to 12 options to a chat, contact, or group. Track responses through poll.voted webhooks and the message's poll tally.

Instructions

Send a poll with 2 to 12 options. Votes arrive as poll.voted webhooks and in the message's poll tally (get_message).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient: a phone number in E.164 with + (`+584241112233`), `lid:<digits>`, the `@username` of a contact the account already chats with, a group id (`...@g.us`), or a channel id (`...@newsletter`) the account administers.
optionsYes2 to 12 unique options.
mentionsNoContact ids to @mention (E.164 or `lid:<digits>`).
questionYesThe poll question.
accountIdYesThe wuapi account id of the linked number to act as (from list_accounts).
idempotencyKeyNoOptional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice.
selectableCountNoHow many options a voter may pick. 0 (default) means any number; 1 makes it single choice.
replyToMessageIdNoA wuapi message id in the same chat to quote (reply to).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate it is a write operation (readOnlyHint=false) and not destructive or idempotent. The description adds valuable context about the outcome (votes arrive via webhooks and poll tally), which is beyond what annotations provide. It does not contradict 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?

The description is two sentences with no redundancy. It front-loads the core purpose and the key constraint, then adds a useful behavioral note. Every word earns its place.

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 send action with no output schema, the description adequately covers what the tool does and the expected result. It does not mention prerequisites like account connection or error handling, but these are likely implied by the broader API context. The behavioral note about webhooks and tally adds completeness.

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 all parameters are documented in the schema. The description adds minimal new information beyond restating the option count range, which is already in the schema. It does not clarify parameter formats or relationships beyond what the schema provides.

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 clearly states the action (send a poll) with a specific constraint (2 to 12 options), which distinguishes it from sibling messaging tools like send_text or send_media. It also adds the behavioral detail about how votes are delivered, reinforcing the unique purpose.

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

Usage Guidelines3/5

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

The description does not explicitly say when to use this tool versus alternatives or provide exclusion conditions. Usage is implied by the tool's name and purpose, but there is no explicit routing guidance like 'use instead of send_text when a poll is needed.'

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