Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika (own account): leave

rubika_web_leave_chat
Destructive

Leaves a Rubika group or channel from the signed-in web account after explicit user approval; requires confirm=true and a chat allowed by configuration.

Instructions

Leave one group or channel. 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>",
      "confirm": "<confirm>"
    },
    "name": "rubika_web_leave_chat"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds real context beyond that: the two-phase confirm-after-user-approval flow and the two configuration gates (NABU_WEB_ALLOW_ACCOUNT_CHANGES=1 and RUBIKA_WEB_ALLOWED_CHATS) that will cause failure if unmet. It does not state what happens to membership/history after leaving, which keeps it from a 5.

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?

Two short sentences with the action front-loaded and prerequisites trailing. The environment-variable clause is densely packed but every element earns its place; nothing is redundant padding.

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?

With only two fully documented parameters, rich annotations, and no output schema, the critical gaps an agent would hit (approval handshake, config gating) are covered. Post-leave consequences and error behavior are the remaining omissions, which are minor for this complexity level.

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

Parameters3/5

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

Schema coverage is 100% and the schema already explains chatId formats and that confirm must be true after explicit approval. The description only restates the confirm requirement and adds config context, so it adds little parameter meaning beyond the schema. Baseline 3 is appropriate.

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 with explicit scope: 'Leave one group or channel.' This is immediately distinguishable from siblings like rubika_web_join_chat, rubika_web_create_chat, and rubika_web_delete_messages without inspecting any schema.

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

Usage Guidelines3/5

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

The description gives invocation prerequisites (user approval, confirm: true, environment gates) but no explicit when-to-use vs when-not guidance or named alternatives. An agent knows the preconditions but must infer from the tool name alone that this is the counterpart to join_chat.

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