Rubika (own account): admin rights
rubika_web_set_adminPromotes or demotes a Rubika chat member to admin. Use it after explicit user approval with confirm set to true, provided account changes and the chat are allowed.
Instructions
Promote one member to admin (isAdmin: true) or demote them. Changes the user's account: needs confirm: true after the user approves, NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and (for an existing chat) the chat in RUBIKA_WEB_ALLOWED_CHATS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chatId": "<chatId>",
"userId": "<userId>",
"confirm": "<confirm>"
},
"name": "rubika_web_set_admin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | "me" for Saved Messages, @username, or an object guid from messaging_web_list_chats | |
| userId | Yes | userId from get_members or get_contacts. | |
| confirm | Yes | Must be true, and only after the user has explicitly approved this exact action. | |
| isAdmin | No |