Count unread messages
chat_unreadCounts unread chat messages for the signed-in member without returning or altering them, giving a cheap check for new activity before fetching messages.
Instructions
Counts the chat messages the signed-in member has not read yet, without returning them or changing anything. Returns count (capped at 99), exactCount and overflow (true from 100 unread). Use it for a cheap check before chat_messages; clear the count with chat_mark_read.
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": "chat_unread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. |