Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika bot: edit

rubika_bot_edit_message
Idempotent

Update the text of a message previously sent by the Rubika bot in an allowed chat. Requires explicit user confirmation before applying the edit.

Instructions

Replace the text of a message the bot sent. Needs confirm: true, the chat in RUBIKA_ALLOWED_CHAT_IDS 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_bot_edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
chatIdYesRubika chat, group or channel id for the bot.
confirmYesMust be true, and only after the user has explicitly approved this exact action.
messageIdYesId of a message this bot sent.

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 declare idempotent, non-destructive, open-world mutation, so the bar is lowered, and the description adds real gating context the annotations cannot express: an explicit approval flag and two environment/allowlist gates. It does not explain failure behavior when a gate is unset (error vs silent no-op) or whether non-text message parts are preserved, which keeps it off 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 compact sentences with the action front-loaded and prerequisites second; nothing is padded. "Needs confirm: true" slightly duplicates the schema's confirm description, which is the only wasted phrase.

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

Completeness5/5

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

For a four-required-parameter mutation tool with no output schema, the definition covers the action, the approval requirement, and both external gating conditions an agent could otherwise trip over. No return value needs explaining, so the remaining unknowns (error shape) are minor for correct invocation.

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 75% with chatId, messageId and confirm fully documented in-schema, so the baseline is 3. The description reinforces the confirm requirement but adds nothing about the `text` parameter beyond the schema's length bounds, and no syntax hints are given for the ids.

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?

"Replace the text of a message the bot sent" gives a specific verb and resource plus a scoping qualifier (a message the bot itself sent), which separates it from arbitrary message operations. It stops short of naming the sibling rubika_web_edit_message, so an agent must infer the bot-vs-web split from the name alone.

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 states hard preconditions for invocation (confirm: true, chat present in RUBIKA_ALLOWED_CHAT_IDS, NABU_MESSAGING_ENABLE_SEND=1), which effectively tells the agent when the call is permitted. It does not say when to prefer this over rubika_web_edit_message or what to do when those preconditions fail, so guidance is implied rather than comparative.

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