Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

unbanChatMember

Reinstates a previously banned user in a supergroup or channel, allowing them to rejoin via invite link. Requires bot administrator rights and returns true on success.

Instructions

Unban a previously banned user in a supergroup or channel. The user will NOT return to the group automatically but will be able to join via link, etc. The bot must be an administrator. Returns True on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target supergroup/channel (in the format @channelusername)
user_idYesUnique identifier of the target user
only_if_bannedNoDo nothing if the user is not banned

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 full burden of behavioral disclosure. It states the non-obvious post-condition (user will not automatically return), the admin prerequisite, and the success return value. It does not cover failure cases, but the key behavioral details are present.

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?

Three short sentences deliver purpose, scope, behavioral consequence, prerequisite, and return value with no redundancy. The most important information is front-loaded and every sentence earns its place.

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 three-parameter tool with no output schema and no annotations, the description covers action, scope, prerequisite, key behavior, and return value. It is slightly incomplete in that it does not address error scenarios or differentiate from unbanChatSenderChat, but the core calling context is sufficiently complete.

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?

The input schema already documents all three parameters with 100% coverage, including the optional only_if_banned flag. The description adds no parameter-specific nuance beyond what the schema provides, so the baseline of 3 is appropriate.

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 specific verb ('Unban'), a precise object ('previously banned user'), and the applicable scope ('supergroup or channel'). It is easy to distinguish from sibling tools like banChatMember or unbanChatSenderChat based on this wording.

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 provides relevant context: the bot must be an administrator and the user will not return automatically. However, it does not explicitly mention alternatives or state when to use this tool instead of related tools like unbanChatSenderChat, so usage guidance is mostly implied.

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