Skip to main content
Glama

Supergreen WhatsApp

get_messages

Read-onlyIdempotent

Read recent messages from a specific WhatsApp chat or group (supports pagination via message ID cursor and fromMe filter).

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": {
      "chatId": "<chatId>"
    },
    "name": "get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoMessage ID cursor for pagination
countNoNumber of messages to return (default: 20, max: 200)
chatIdYesChat ID to fetch messages from (e.g., '972501234567@c.us', '120363123456789012@g.us', or bare phone number)
fromMeNoFilter by whether messages were sent by you
threadIdNoOptional reconstructed group thread ID to filter messages to that thread
directionNoFetch messages 'before' or 'after' the given message ID (default: 'before')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds that pagination uses a message-ID cursor, but says nothing about result ordering, what happens with an invalid/expired cursor, or rate limits. Useful but not deep context beyond 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the core action, with parenthetical detail for pagination and filtering. No filler, though the parenthetical adds little beyond the schema.

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?

There is no output schema, so the description should indicate roughly what a returned message looks like or how ordering/pagination interacts, and it does not. For a read-only, fully documented-schema tool this is adequate but leaves a gap around return shape.

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 six parameters are already documented in the schema; the description merely restates the cursor and fromMe filter and adds nothing on direction, threadId, or count defaults. Baseline 3 applies.

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?

Names a specific verb (Read) and resource (recent messages), scopes it to a WhatsApp chat or group, and flags two capabilities (cursor pagination, fromMe filter). It never mentions the sibling search_messages, so the boundary between listing recent messages and searching is left to the agent.

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 only implied: 'recent messages' suggests a chronological listing as opposed to a search, but the description never states when to prefer this over search_messages or whether the chat must already be known (chatId is required). No exclusions or prerequisites are given.

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.

Resources