Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika (own account): delete

rubika_web_delete_messages
DestructiveIdempotent

Delete one or more Rubika messages from a chat, optionally for everyone where allowed; explicit confirmation is required because deletion cannot be undone.

Instructions

Delete messages; forEveryone (default true) also removes them for the other side where allowed. Cannot be undone. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.

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>",
      "messageIds": "<messageIds>",
      "confirm": "<confirm>"
    },
    "name": "rubika_web_delete_messages"
  }
}

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.
messageIdsYesmessageIds from read_chat.
forEveryoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint and openWorldHint, but the description goes further by declaring irreversibility ('Cannot be undone'), the default-true reach of forEveryone ('also removes them for the other side where allowed'), the confirm gate, and two environment prerequisites. What remains unstated is partial-failure behavior and what the response reports, which is a modest gap rather than a contradiction of the idempotent/destructive annotations.

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?

A short, front-loaded block: action and flag semantics first, then the irreversibility warning, then the confirm and environment gates. Dense but every clause carries operational weight; the env-var names make the final sentence slightly hard to parse.

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 destructive, open-world mutation with no output schema and four parameters, the definition covers the safety-critical surface: reversibility, default blast radius, confirmation protocol, and gating environment flags. It stops short of describing what a successful call returns or how partial deletion of the 50-id batch is reported.

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?

Schema coverage is 75%, and the description fills the main hole: forEveryone has no schema description at all, and the text supplies both its default (true) and its effect of deleting for the other side. The confirm requirement is reinforced beyond the schema's own wording, though chatId and messageIds add nothing past what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Delete messages') and immediately scopes the meaning of the forEveryone flag. It does not explicitly distinguish itself from the sibling rubika_bot_delete_message or rubika_web_edit_message, so differentiation relies on the name prefix rather than the prose.

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?

Gives hard preconditions (user approval, chat must be in RUBIKA_WEB_ALLOWED_CHATS, NABU_MESSAGING_ENABLE_SEND=1) and implies the tool should only be called after explicit confirmation. It never names an alternative path or states when not to use this tool versus the bot-side delete sibling.

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