Skip to main content
Glama
grammy-mcp
by louietyj

unbanChatSenderChat

Unbans a previously banned channel chat in a supergroup or channel, restoring its ability to participate; the bot needs appropriate admin rights.

Instructions

Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate 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>",
      "sender_chat_id": "<sender_chat_id>"
    },
    "name": "unbanChatSenderChat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target channel in the format `@username`
sender_chat_idYesUnique identifier of the target sender chat

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, open-world, non-destructive mutation. The description adds genuine value beyond them by disclosing the administrator-rights requirement and confirming a True return on success. However, with annotations covering the safety profile, this is a solid 3 rather than a 4 – it does not cover edge cases (e.g., sender chat not currently banned) or whether the call is idempotent.

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 with the action front-loaded and the prerequisite following; no filler or repetition. It is appropriately sized for a simple two-parameter mutation.

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?

A two-parameter, annotation-covered tool needs little explanation, and the description covers purpose, precondition, and success signal without an output schema. Only minor edge-case behavior (what happens when the sender chat is not banned) is left unspecified.

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 sender_chat_id are already documented in the schema, including the @username format for channels. The description adds no meaning beyond what the schema provides, so baseline 3 is correct.

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 states a specific verb and resource — unban a previously banned channel chat in a supergroup or channel — and the phrase 'previously banned' implicitly contrasts with its ban counterpart. It is clear enough to distinguish from sibling write tools, though it never names the sibling it pairs with.

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 gives a clear precondition for use: the bot must be an administrator in the target supergroup or channel and hold the appropriate administrator rights. It does not state when-not to use it or name an alternative, so it falls short of full when/when-not guidance.

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