Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika (own account): edit

rubika_web_edit_message
Idempotent

Replace the text or caption of one of your existing messages in a Rubika chat after explicit approval. Use it to correct or update sent content by chat ID and message ID.

Instructions

Replace the text or caption of one of the user's messages. 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>",
      "messageId": "<messageId>",
      "text": "<text>",
      "confirm": "<confirm>"
    },
    "name": "rubika_web_edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
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.
messageIdYesmessageId from read_chat.

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?

The annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is partly covered. The description adds non-obvious operational context the annotations do not: the confirm-after-approval gate, the allowed-chats allowlist, and the environment flag. It stops short of saying what happens when those gates fail. Note also that 'Replace' implies overwriting prior text, which sits mildly against destructiveHint=false.

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 sentences, front-loaded with the action and then the preconditions; no wasted framing. The second sentence is somewhat telegraphic and crammed with three separate gates, which slightly hurts readability but not economy.

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 mutation tool with annotations covering safety and no output schema, the description covers the action, the target, and the approval/allowlist/environment gates an agent needs before calling. Minor gaps remain around failure behavior and whether media-bearing messages are handled.

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%, so the baseline is 3. The description earns an extra point by clarifying that the 'text' parameter can carry either message text or a media caption, and by constraining which chats are valid for chatId via the allowlist — meaning beyond what the schema states.

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?

The description uses a specific verb and resource: 'Replace the text or caption of one of the user's messages.' The phrase 'the user's messages' implicitly scopes this to the own-account surface rather than the bot surface, but it never names the sibling alternative (rubika_bot_edit_message), so the differentiation is inferred rather than stated.

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?

It states real preconditions — user approval first, chat must be in RUBIKA_WEB_ALLOWED_CHATS, NABU_MESSAGING_ENABLE_SEND=1 — which is useful gating. However, there is no explicit when-to-use/when-not guidance and no comparison to an alternative editing path, so the agent must infer when this tool is the right choice.

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