Skip to main content
Glama
grammy-mcp
by louietyj

unpinAllForumTopicMessages

Destructive

Clears all pinned messages from a forum topic in a Telegram supergroup or private chat; the bot must be an administrator with permission to pin messages.

Instructions

Use this method to clear the list of pinned messages in a forum topic 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_pin_messages administrator right in the supergroup. 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": "unpinAllForumTopicMessages"
  }
}

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 destructive=true and readOnly=false, so the mutation is known; the description adds the genuinely useful prerequisite (administrator + can_pin_messages in supergroups) and the success return value. It does not say what happens if the topic has no pinned messages, but the permission disclosure is the meaningful addition.

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 tight sentences: purpose first, precondition second, return value last. No filler, and the most important constraint is not buried.

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 mutation with full schema coverage and no output schema, the description covers purpose, permission prerequisite and return value. Only the behaviour when no pins exist or on failure is 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 coverage is 100%, so chat_id and message_thread_id are already documented in the schema. The description only echoes 'forum topic' without adding format rules or edge cases beyond what the schema states, so baseline 3 applies.

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?

States a specific verb and resource: 'clear the list of pinned messages in a forum topic.' Scope qualifiers (forum supergroup chat or private chat with a user) make it distinguishable from a whole-chat unpin, though no sibling is named explicitly.

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?

Gives real preconditions for when the call will work — bot must be an administrator with the can_pin_messages right in a supergroup. However, it never contrasts with the neighbouring unpinAllChatMessages / unpinAllGeneralForumTopicMessages, leaving the agent to infer which unpin variant applies to which target.

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