Skip to main content
Glama
EvandroSchechtel

WhatsApp Business MCP Server

mark_message_read

Mark WhatsApp messages as read to update conversation status and confirm message delivery using message IDs from webhooks.

Instructions

Mark a received message as read (blue checkmarks). Use the message_id from a received webhook.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYesThe wamid of the message to mark as read

Implementation Reference

  • The actual implementation of the markMessageRead method that communicates with the WhatsApp API.
    async markMessageRead(messageId: string) {
      return this.request(`/${this.config.phoneNumberId}/messages`, "POST", {
        messaging_product: "whatsapp",
        status: "read",
        message_id: messageId,
      });
  • src/index.ts:270-280 (registration)
    MCP tool registration for mark_message_read, including its schema and execution hook.
    server.tool(
      "mark_message_read",
      "Mark a received message as read (blue checkmarks). Use the message_id from a received webhook.",
      {
        message_id: z.string().describe("The wamid of the message to mark as read"),
      },
      async ({ message_id }) =>
        executeWithHooks("mark_message_read", { message_id }, config, () =>
          wa.markMessageRead(message_id)
        )
    );

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

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