Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

unpinChatMessage

Remove a pinned message from a chat by providing the chat ID and optional message ID. Use it to unpin the latest pinned message when no ID is specified, with admin rights required for non-private chats.

Instructions

Remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator with can_pin_messages rights in a supergroup or can_edit_messages rights in a channel. Returns True on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_idNoIdentifier of the message to unpin. Required if business_connection_id is specified. If not specified, the most recent pinned message (by sending date) will be unpinned.
business_connection_idNoUnique identifier of the business connection on behalf of which the message will be unpinned

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It does well by mentioning the removal side effect, the permission requirements, and the 'Returns True on success' outcome. It could additionally note behavior when message_id is omitted, but that is already covered in the input schema.

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 compact and front-loaded, with the core action in the first sentence and essential permission/return details in the second. No filler or redundant wording.

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 tool with three parameters, full schema coverage, and no output schema, the description is largely sufficient. It covers the action, permissions, and return value. Naming unpinAllChatMessages as the bulk alternative would make it fully complete, but nothing critical is missing.

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 the baseline is 3. The description adds useful permission context for chat_id but does not meaningfully expand on message_id or business_connection_id beyond what the schema already documents.

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 states a precise action: 'Remove a message from the list of pinned messages in a chat.' It clearly identifies the resource being acted on and distinguishes this tool from related siblings like unpinAllChatMessages and pinChatMessage.

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 description gives clear context about when the tool can be used, including the administrator rights required for non-private chats. However, it does not explicitly mention alternatives such as unpinAllChatMessages for removing all pins at once, so the when-not-to-use guidance is left implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TONresistor/telegram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server