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
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The wamid of the message to mark as read |
Implementation Reference
- src/whatsapp-client.ts:200-205 (handler)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) ) );