Skip to main content
Glama

Turbo Notify: WhatsApp for AI agents

Mark a WhatsApp conversation as read

mark_as_read

Mark a conversation's unread messages as read, without sending anything.

Set exactly one recipient: number, group_id, or contact_id. With number or contact_id, only the one-to-one chat with that person is marked as read: the messages they sent in groups stay unread. For a group, pass its group_id.

This is independent of the automatic mark-as-read that already happens when you send, reply, react, edit, delete or start typing (the number also appears online first): use it to clear an unread badge on its own, for example when handing a conversation to a human who has already seen it. No message is sent and no message.* event is produced, but the sender sees the messages as read (blue ticks) on WhatsApp.

Needs a plan that includes read receipts. Without it this answers payment_required: feature_not_available, and the answer will not change by retrying.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mark_as_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberNoRecipient phone number in E.164 form, digits only, country code first (e.g. `5511999999999`). Set exactly one of `number`, `group_id` or `contact_id`.
group_idNoRecipient group id (`grp_…`), from `list_groups`. A group id belongs to one number: an id from one number does not address the same group in another. Set exactly one of `number`, `group_id` or `contact_id`. Addressing a group needs a plan that includes group messaging: without it the call answers `payment_required: feature_not_available`, and retrying will not change that.
contact_idNoRecipient contact id (`ct_…`), from `list_contacts` or a message's sender. It also reaches a person whose number WhatsApp does not show. A contact id belongs to one number: an id from one number does not address the same person in another. Set exactly one of `number`, `group_id` or `contact_id`.
number_aliasNoWhich of the organization's WhatsApp numbers this acts on: `main`, the alias of an extra number, or the number's `id` (`num_…`), which stays the same when the alias is renamed. Call `list_numbers` to see them. Defaults to the main number.main

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / contact_id / description
      Previous value: -"Recipient contact id (`ct_…`), from `list_contacts`. A contact id belongs to one number: an id from one number does not address the same person in another. Set exactly one of `number`, `group_id` or `contact_id`."New value: +"Recipient contact id (`ct_…`), from `list_contacts` or a message's sender. It also reaches a person whose number WhatsApp does not show. A contact id belongs to one number: an id from one number does not address the same person in another. Set exactly one of `number`, `group_id` or `contact_id`."
  2. Changed2 schema fields changed
    • changedInput schema / properties / contact_id / description
      Previous value: -"Recipient contact id (`ct_…`), from `list_contacts`. A contact id belongs to one number: an id from one inbox does not address the same person in another. Set exactly one of `number`, `group_id` or `contact_id`."New value: +"Recipient contact id (`ct_…`), from `list_contacts`. A contact id belongs to one number: an id from one number does not address the same person in another. Set exactly one of `number`, `group_id` or `contact_id`."
    • changedInput schema / properties / group_id / description
      Previous value: -"Recipient group id (`grp_…`), from `list_groups`. A group id belongs to one number: an id from one inbox does not address the same group in another. Set exactly one of `number`, `group_id` or `contact_id`. Addressing a group needs a plan that includes group messaging: without it the call answers `payment_required: feature_not_available`, and retrying will not change that."New value: +"Recipient group id (`grp_…`), from `list_groups`. A group id belongs to one number: an id from one number does not address the same group in another. Set exactly one of `number`, `group_id` or `contact_id`. Addressing a group needs a plan that includes group messaging: without it the call answers `payment_required: feature_not_available`, and retrying will not change that."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only give generic hints (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false); the description goes well beyond them by disclosing the externally visible side effect (sender sees blue ticks), the absence of an outbound message and of any `message.*` event, and the exact failure mode with error code. The note that the number appears online first adds further behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and recipient-selection rule, then side effects, then the plan caveat. Most sentences carry non-obvious information, but the parenthetical about the number appearing online first and the re-statement of the exactly-one-recipient rule add bulk without much decision value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a state-mutating tool with four optional parameters, an output schema, and annotations, every decision-relevant fact is present: which identifier to pass and how it scopes, what is and isn't observable by the counterparty, and the plan gate with its terminal error. Nothing needed to call it correctly or interpret failure is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics beyond it: `number`/`contact_id` scope the mark to the one-to-one chat only, leaving that person's group messages unread, whereas a group chat requires `group_id`. It restates the exactly-one-recipient rule, which the schema already carries, and says nothing extra about `number_alias`, keeping this just under a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: mark a conversation's unread messages as read. It immediately scopes the operation ('without sending anything') and distinguishes it from the implicit mark-as-read triggered by send/reply/react/edit/delete/typing, so an agent can tell exactly which resource and which variant of the operation this is.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the use case (clearing an unread badge on its own, e.g. handing a conversation to a human who has already seen it) and explicitly excludes the automatic path that already covers send/reply/react/edit/delete/typing. It also states a prerequisite: a plan including read receipts, and that retrying after `payment_required: feature_not_available` is pointless.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.