Skip to main content
Glama

WhatsApp MCP Server

by jlucaso1

get_message_context

Retrieve surrounding messages for a target message ID on WhatsApp, specifying the number of messages before and after for context. Integrates with AI agents to enhance chat history analysis and interaction.

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" }

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