Skip to main content
Glama
tg-secretary-mcp

tg-secretary-mcp

by developkiko

secretary_delete_sent

Destructive

Delete a Telegram message the bot sent on the owner's behalf by specifying the chat and message ID; only the bot's own replies can be removed.

Instructions

Delete a message that was sent through secretary_reply, on the owner's behalf. Only this bot's own messages can be deleted this way.

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": "<chat>",
      "message_id": "<message_id>"
    },
    "name": "secretary_delete_sent"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat: numeric id, @username, or part of the person's name
message_idYesmessage_id as shown by secretary_read

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the agent knows this is an irreversible mutation on external state. The description's added value is the ownership/scoping constraint, which explains a failure mode the annotations don't cover. It says nothing about ordering, error responses, or side effects on the original message context, so it stays at 3.

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 immediately followed by the hard constraint. Nothing is repeated from the name or the schema, and no sentence is filler.

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 two-parameter destructive tool with full schema coverage and safety annotations, the description supplies the one thing structured fields can't: which messages are eligible. It omits nothing an agent needs to decide whether to call it, though a note on what happens to already-deleted or invalid ids would round it out.

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% and both parameters carry descriptions, including the cross-reference to secretary_read for message_id. The description adds no further meaning about parameter format or identifier resolution, so baseline 3 applies.

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 names a specific verb and resource ('Delete a message') and narrows the scope to messages sent through secretary_reply. It also states the ownership constraint ('Only this bot's own messages'), which lets an agent distinguish this from a general message-deletion capability without opening any schema.

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 clearly establishes the precondition for use: the target must be a message this bot sent via secretary_reply, otherwise deletion won't apply. There is no explicit routing to an alternative tool for other message types, which keeps it short of a 5, but the applicable context is unambiguous.

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