Skip to main content
Glama
bale-mcp

bale-mcp

by sepehr071

Bot: edit message

bot_edit_message
Destructive

Replace the text of an earlier bot message by chat and message ID; confirm the change with the user before updating the real message.

Instructions

Replace the text of a message the bot sent earlier. Changes a real message; confirm with the user first.

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": {
      "chat_id": "<chat_id>",
      "message_id": "<message_id>",
      "text": "<text>"
    },
    "name": "bot_edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesNew text.
chat_idYesChat id (number) or public '@channel' username.
message_idYesId of a bot text message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • changedInput schema / properties / chat_id / description
      Previous value: -"Chat id (number, e.g. 123456789) or public '@channel' username. See bot_list_chats."New value: +"Chat id (number) or public '@channel' username."
    • changedInput schema / properties / message_id / description
      Previous value: -"Id of a text message the bot sent."New value: +"Id of a bot text message."
  2. Changed6 schema fields changedv0.2.0
    • changedInput schema / properties / chat_id / description
      Previous value: -"Chat id (number from bot_get_new_messages or bot_list_chats, e.g. 123456789) or a public channel/group username like '@mychannel'."New value: +"Chat id (number, e.g. 123456789) or public '@channel' username. See bot_list_chats."
    • removedInput schema / properties / chat_id / title
      Removed value: -"Chat Id"
    • removedInput schema / properties / message_id / title
      Removed value: -"Message Id"
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / title
      Removed value: -"bot_edit_messageArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "bot_edit_messageDictOutput",
      -  "type": "object"
      -}New value: +null
  3. 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 destructiveHint=true and idempotentHint=false, and the description reinforces this with "Changes a real message" plus the fact that only bot-authored messages can be edited. The added confirmation requirement is genuine behavioral context not present in the annotations. It stops short of covering failure modes such as editing a non-bot or too-old message.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and followed immediately by the safety caveat. Nothing is padded or repeated from the title or schema.

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 three-parameter mutation tool with rich annotations and no output schema, the definition covers the action, the ownership restriction, and the confirmation requirement. Only edge-case behavior (what happens on an invalid or non-bot message) is left unstated, which is minor at this complexity.

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%, with each parameter documented inline, including the chat_id/@channel form and the 1-4096 text limit. The description adds only the implicit constraint that message_id must reference a bot text message, so it does not meaningfully extend the schema.

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 earlier" names a specific verb (replace) and resource (message text) and adds an ownership constraint that separates it from generic message tools. It does not explicitly name bot_send_message or bot_delete_message as the adjacent alternatives, so sibling differentiation is implied 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?

The instruction "confirm with the user first" gives a real operational prerequisite for invoking this tool. However, there is no guidance on when to edit versus sending a new message or deleting and resending, which are the obvious competing options among the siblings.

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