Skip to main content
Glama
luiso2

Evolution API WhatsApp MCP Server

by luiso2

read_message

Mark WhatsApp messages as read to maintain organized conversations and clear message status indicators in business messaging workflows.

Instructions

Mark message as read

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromMeNoIs message from me
idNoMessage ID
instanceNameYesInstance name
remoteJidYesChat JID

Implementation Reference

  • src/index.ts:427-439 (registration)
    Registration of the 'read_message' tool in the MCP tools array, including name, description, and input schema.
    name: 'read_message', description: 'Mark message as read', inputSchema: { type: 'object', properties: { instanceName: { type: 'string', description: 'Instance name' }, remoteJid: { type: 'string', description: 'Chat JID' }, fromMe: { type: 'boolean', description: 'Is message from me' }, id: { type: 'string', description: 'Message ID' } }, required: ['instanceName', 'remoteJid'] } }
  • MCP handler for 'read_message' tool that calls the EvolutionAPI service and formats the response.
    private async handleReadMessage(args: any) { const result = await evolutionAPI.readMessage(args.instanceName, { remoteJid: args.remoteJid, fromMe: args.fromMe, id: args.id }); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] }; }
  • Helper method in EvolutionAPI service that makes the HTTP POST request to mark a message as read in the underlying Evolution API.
    async readMessage(instanceName: string, data: { remoteJid: string; fromMe?: boolean; id?: string; }): Promise<any> { const response = await this.client.post(`/chat/readMessage/${instanceName}`, data); return response.data; }

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/luiso2/mcp-evolution-api'

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