Skip to main content
Glama
bale-mcp

bale-mcp

by sepehr071

Bot: delete message

bot_delete_message
Destructive

Deletes a message the bot can remove, including its own or admin-authorized messages; irreversible, so confirm with the user first.

Instructions

Delete a message the bot may delete (its own, or as admin). Irreversible; 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>"
    },
    "name": "bot_delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesChat id (number) or public '@channel' username.
message_idYesMessage id to delete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field 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."
  2. Changed5 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 / title
      Removed value: -"bot_delete_messageArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "bot_delete_messageDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds important context: the operation is irreversible and should be confirmed with the user first. It also clarifies the permission boundary (bot's own messages or admin rights). It does not describe failure behavior when deletion is not permitted, but it meaningfully supplements the annotations.

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?

The description is two short sentences with no wasted words. The destructive nature and confirmation requirement are front-loaded, which is exactly what an agent needs before invoking the tool.

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 simple deletion tool with full schema coverage and annotations that already declare destructiveness, the description supplies the essential missing context: irreversibility, permission scope, and user confirmation. It could mention failure modes or post-deletion effects, but it is largely complete 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 description coverage is 100%, so both chat_id and message_id are already documented in the schema. The description does not add parameter-level meaning beyond what the schema provides, which is acceptable given full coverage.

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?

The description uses a specific verb and resource: delete a message. It also states the permission scope ('the bot may delete (its own, or as admin)'), which clearly distinguishes this from siblings such as bot_edit_message or bot_send_message.

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

Usage Guidelines4/5

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

It establishes a clear precondition: only messages the bot may delete, and it instructs the agent to confirm with the user first. It does not explicitly name alternatives such as editing instead of deleting, but the usage context is sufficiently clear.

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