Skip to main content
Glama
victor-halla

wwebjs-mcp

by victor-halla

message_getPollVotes

Retrieve poll vote results for a WhatsApp message using session, chat, and message IDs. If the message is not a poll or is missing, returns null.

Instructions

[Message] Get poll vote results for a message with a poll. May return null if the message does not exist or is not a poll.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatIdNoThe chat id which contains the message
messageIdNoUnique WhatsApp ID for the message
sessionIdYesUnique identifier for the session (alphanumeric and - allowed)
Behavior3/5

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

With no annotations, the description must carry the behavioral disclosure burden. It does disclose a key behavior: returning null if the message does not exist or is not a poll. However, it does not mention any other behavioral details such as whether it requires specific permissions, how it handles expired polls, or the structure of the results. This is adequate but not rich.

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 a single, well-structured sentence. It front-loads the action and includes the most important edge-case behavior (null return) without any fluff. 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 getter with fully documented parameters and no output schema, the description is largely complete. It explains the purpose and the null return behavior. However, it does not specify the shape of the returned 'poll vote results,' which could be helpful since there is no output schema, but the tool's name and intent make it reasonably clear.

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?

The schema already provides complete descriptions for all three parameters (coverage 100%), so the description need not add parameter-specific details. The baseline of 3 applies because the schema does the heavy lifting; the description adds no extra parameter semantics beyond what is already structured.

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 ('Get poll vote results for a message with a poll') with a specific verb and resource. It distinguishes itself from sibling message tools (e.g., message_getReactions) by focusing specifically on poll votes, and even notes the null return condition, which sharpens the purpose.

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?

The description implies when to use the tool: when you need poll vote results for a message that contains a poll. It does not explicitly name alternatives or exclusions, but the context is clear. Sibling tools cover other aspects (reactions, info), so a user can infer the appropriate selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/victor-halla/wwebjs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server