Skip to main content
Glama

get_poll_results

Read-only

Shows the results of a WhatsApp poll in any chat, groups included: each option with its number of votes and who voted for it. Paid plan (the vote counts in read_chat_history are on every plan). Pass the poll's id from read_chat_history (a "[poll] …" line; received polls aren't found by search_messages). Use it for questions like "who voted for Friday?" or "who hasn't answered the poll?" (compare the voters with the group's members). A person's latest vote counts; a withdrawn vote counts for nobody. Some votes can't be read (the result's note says which), so the count may be lower than on the phone: say so when it matters. Returns { message_id, chat_jid, question, allow_multiple, voters_total, options: [{ name, count, voters }], includes_votes_from_before_link, note }: each voter has the contact fields (name; name_source: address_book, push_name, group_subject, business, phone or unresolved; canonical_jid: the JID to pass to send_message and read_chat_history; phone_jid and lid_jid: the chat's phone-number and LID forms, null when unknown or for groups; phone_display: the number as +). The user's own vote shows as name "Me".

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": {
      "message_id": "<message_id>"
    },
    "name": "get_poll_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesThe poll message's `id`, as read_chat_history shows it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: discloses a paid-plan gating requirement (and that read_chat_history counts are on every plan), the vote-resolution rules (latest vote counts, withdrawn votes count for nobody), and a known partial-read limitation with instructions to surface the `note` when it matters. These are exactly the caveats an agent needs to avoid misreporting results.

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 purpose, then prerequisites, then usage examples, then return shape. The long field enumeration of the return object is dense but justified because no output schema exists; a few clauses (phone_jid/lid_jid/null conditions) could be tightened.

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 no output schema and only one parameter, the description carries the full burden and does so: it documents the complete return shape, the voter contact fields, the 'Me' convention for the user's own vote, and the edge cases around unreadable votes.

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% and the single parameter is already documented, so the baseline is 3; the description still adds real meaning by specifying the id's provenance and format in read_chat_history output, which the schema only alludes to.

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 ('Shows the results of a WhatsApp poll in any chat, groups included') and immediately scopes what is returned: each option with vote counts and voter identities. This distinguishes it from read_chat_history, which only exposes aggregate vote counts.

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 tells the agent where the required id comes from ('Pass the poll's `id` from read_chat_history (a "[poll] …" line)'), rules out a tempting alternative ('received polls aren't found by search_messages'), and gives concrete question patterns the tool answers, including the cross-reference step of comparing voters with group members.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.