Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika (own account): admin rights

rubika_web_set_admin
Idempotent

Promotes 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

NameRequiredDescriptionDefault
chatIdYes"me" for Saved Messages, @username, or an object guid from messaging_web_list_chats
userIdYesuserId from get_members or get_contacts.
confirmYesMust be true, and only after the user has explicitly approved this exact action.
isAdminNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing that this mutates the user's account and is gated behind environment flags and chat allowlists, which the annotations do not convey. It is consistent with readOnlyHint=false and idempotentHint=true, though it says nothing about failure behavior or what happens to a demoted admin's other permissions.

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?

The action and its direction switch are front-loaded in the first clause, with the safety prerequisites in the second sentence. The parenthetical environment-variable list is dense but each item is load-bearing for a gated mutation.

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

Completeness4/5

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

For a 4-parameter mutation with no output schema, the definition covers the action, the role switch, the confirmation contract, and the required configuration gates. Minor gaps remain around error responses and whether demotion is reversible, but nothing essential for correct invocation 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?

The description supplies the meaning of the undocumented isAdmin parameter (true = promote, otherwise demote), which the 75%-covered schema leaves blank. It reinforces confirm's approval semantics rather than merely repeating chatId/userId lookup hints already in the schema.

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?

States a specific verb and resource ('Promote one member to admin ... or demote them') and covers both directions of the operation, which no sibling such as rubika_web_add_members or rubika_web_remove_member does. An agent can immediately tell this is the role-change tool rather than a membership add/remove tool.

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

Usage Guidelines4/5

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

Gives clear gating conditions: confirm must be true, and only after explicit user approval, plus the NABU_WEB_ALLOW_ACCOUNT_CHANGES and RUBIKA_WEB_ALLOWED_CHATS prerequisites. It does not name an alternative tool or state when not to use it, so it falls short of full routing guidance.

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