Skip to main content
Glama

WhatsApp MCP Server

by jlucaso1

get_message_context

Retrieve surrounding messages from a WhatsApp chat by specifying a message ID and the number of messages to fetch before and after it, enabling deeper context analysis.

Input Schema

NameRequiredDescriptionDefault
afterNoNumber of messages after (default 5)
beforeNoNumber of messages before (default 5)
message_idYesThe ID of the target message to get context around

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "after": { "default": 5, "description": "Number of messages after (default 5)", "minimum": 0, "type": "integer" }, "before": { "default": 5, "description": "Number of messages before (default 5)", "minimum": 0, "type": "integer" }, "message_id": { "description": "The ID of the target message to get context around", "type": "string" } }, "required": [ "message_id" ], "type": "object" }
Install Server

Other Tools from WhatsApp MCP Server

Related Tools

    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/jlucaso1/whatsapp-mcp-ts'

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