Skip to main content
Glama
grammy-mcp
by louietyj

deleteForumTopic

Destructive

Deletes a forum topic and every message in it within a supergroup or private chat; the bot needs administrator rights to delete messages.

Instructions

Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights. Returns True on success.

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_thread_id": "<message_thread_id>"
    },
    "name": "deleteForumTopic"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
message_thread_idYesUnique identifier for the target message thread of the forum topic

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds real context beyond them: the deletion cascades to all messages in the topic, requires administrator status plus can_delete_messages rights, and returns True on success. That is exactly the operational detail an agent needs before invoking a destructive call.

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?

Three short sentences, front-loaded with the action and its scope, followed by the permission prerequisite and the return value. Every sentence carries information; there is no 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 no output schema, the description covers the cascade effect, the authorization requirement, and the return value. Only the relationship to the close/hide topic siblings is left unstated.

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_thread_id are already documented in the schema. The description adds only the contextual note that the target may be a supergroup or a private chat, which is a marginal clarification rather than new parameter-level meaning.

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 names a specific verb and resource ('delete a forum topic') and adds a meaningful scope detail: it removes 'all its messages' as well. That distinguishes it in substance from close/hide siblings, but no sibling is named, so differentiation requires the agent to already know what those tools do.

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?

Usage context is implied through the prerequisites: the bot must be an administrator with can_delete_messages rights, and the chat can be a supergroup or a private chat. There is no explicit guidance on when to delete versus close, hide, or reopen a topic, leaving that choice to inference.

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

Deploy Server

Other Tools