Skip to main content
Glama

wa_poll_vote

Cast an end-to-end encrypted vote on a WhatsApp poll. Validates selected options against the poll and encrypts the vote exactly as WhatsApp expects.

Instructions

Cast an E2EE vote on a poll (multi-select respected). Finds the poll in the store, validates options, encrypts the vote exactly the way WhatsApp expects.

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>",
      "message_id": "<message_id>",
      "options": "<options>"
    },
    "name": "wa_poll_vote"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat the poll is in
optionsYesOption name(s) to select — must match the poll options exactly
message_idYesPoll message id (from wa_poll_list or wa_read_messages)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses real behavior beyond the schema — store lookup, option validation, E2EE encryption, multi-select support. It does not say what happens on a mismatched option (error vs. silent skip), whether a vote can be changed or retracted, or whether votes are returned anywhere.

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?

Two short sentences with the core action front-loaded and mechanics trailing; nothing is redundant. The closing phrase 'exactly the way WhatsApp expects' is slightly decorative but still conveys the protocol-level E2EE requirement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-required-parameter mutation with no annotations and no output schema, the definition covers the happy path adequately but leaves the agent guessing about failure modes, vote replacement semantics, and what a successful call returns. Enough to attempt the call, not enough to predict its outcome.

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 coverage is 100% and the schema already documents chat, message_id (with its source tools) and the exact-match options array. The description's only added nuance is 'multi-select respected', which clarifies that the options array accepts more than one entry but adds no format or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb+resource ('Cast an E2EE vote on a poll') and adds a scoping detail ('multi-select respected') that separates it from poll creation (wa_send_poll) or listing (wa_poll_list). It stops short of naming a sibling explicitly, so an agent must infer the boundary from the verb alone.

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?

Usage is implied rather than stated: you call this to vote on an existing poll, and elsewhere to create or list polls. There is no explicit 'use X instead when...' routing, no prerequisite (poll must still be open, you must be a participant), and no statement about whether an existing vote is replaced.

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