Skip to main content
Glama
wuapidev

wuapi MCP server

Official
by wuapidev

Vote in a poll

vote_in_poll
Idempotent

Cast or retract your account's vote on a WhatsApp poll message by entering exact option names; an empty list retracts it, and the updated tally is returned.

Instructions

Vote in a poll message as the account that received or sent it, with the names of its options (get_message shows them). An empty list retracts the vote. Returns the poll with its tally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionsYesOption names exactly as in the poll. `[]` retracts the vote.
messageIdYesA wuapi message id (from list_messages, a send tool, or a webhook).
idempotencyKeyNoOptional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds important behavior beyond annotations: voting as the receiving/sending account, retraction via an empty list, and returning the poll with its tally.

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 three compact sentences with no wasted words. The core action is front-loaded, followed by retraction behavior and return value.

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?

With rich annotations, a fully documented schema, and no output schema, the description supplies the needed missing details: account scope, option source, retraction semantics, and return content. Nothing critical for invoking the tool correctly is omitted.

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 messageId, options, and idempotencyKey. The description reinforces option names and retraction but adds little beyond the schema's own parameter descriptions.

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 states a specific verb and resource: 'Vote in a poll message'. It also clarifies the acting account and the expected option names, which distinguishes it from siblings like send_poll and get_message.

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?

It gives clear context for obtaining option names via get_message and states that an empty list retracts the vote. It does not explicitly state when not to use this tool or name a direct voting alternative, but the usage context is clear.

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