get_last_unread_message
Retrieve the most recent unread message from a specific Microsoft Teams chat, or scan all chats to get a compact list of unread messages with senders and text in one call.
Instructions
Reads unread messages. If 'chat_name' is provided, returns the latest unread message in that specific chat. If 'chat_name' is omitted, scans all Teams chats and returns a compact list of all unread messages with their senders and text in one single call. NEVER call list_teams_chats first.
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": "get_last_unread_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_name | No | Optional contact or group name. Leave empty/omitted to scan unread messages across ALL Teams chats. |