Skip to main content
Glama
grammy-mcp
by louietyj

promoteChatMember

Destructive

Promote or demote a user in a Telegram supergroup or channel by assigning administrator privileges; set all boolean permissions to false to demote.

Instructions

Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. 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>",
      "user_id": "<user_id>"
    },
    "name": "promoteChatMember"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target channel in the format `@username`
user_idYesUnique identifier of the target user
is_anonymousNoPass True if the administrator's presence in the chat is hidden
can_change_infoNoPass True if the administrator can change chat title, photo and other settings
can_manage_chatNoPass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
can_manage_tagsNoPass True if the administrator can edit the tags of regular members; for groups and supergroups only
can_edit_storiesNoPass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive
can_invite_usersNoPass True if the administrator can invite new users to the chat
can_pin_messagesNoTrue if the administrator can pin messages; for supergroups only
can_post_storiesNoTrue if the administrator can post stories to the chat
can_edit_messagesNoTrue if the administrator can edit messages of other users and can pin messages; for channels only
can_manage_topicsNoTrue if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
can_post_messagesNoPass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only
can_delete_storiesNoTrue if the administrator can delete stories posted by other users
can_delete_messagesNoPass True if the administrator can delete messages of other users
can_promote_membersNoPass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)
can_restrict_membersNoPass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics. For backward compatibility, defaults to True for promotions of channel administrators.
can_manage_video_chatsNoPass True if the administrator can manage video chats
can_send_welcome_messagesNoPass True if the administrator can manage chat welcome messages or directly send them in the case of bots
can_manage_direct_messagesNoPass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds value beyond that: the administrator-rights prerequisite and the return value ('Returns True on success'). It stops short of warning that demotion silently strips privileges or that the bot cannot grant rights it lacks, which would have earned a 5.

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, front-loaded with purpose, then the prerequisite, then the demotion rule. No filler and no restatement of the tool name.

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 20-parameter mutation tool with no output schema, the description covers purpose, auth requirement, the demote pattern, and the return value. The remaining gap is default behavior for unspecified privilege flags on a promotion, which matters when only two parameters are required.

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 20 parameters are already fully documented and the baseline is 3. The description contributes one genuinely useful semantic rule — that all booleans must be False to demote — but says nothing about what happens to omitted booleans versus explicit False, which is the main ambiguity with 20 optional flags.

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 names a specific verb pair and resource: 'promote or demote a user in a supergroup or a channel'. The dual promote/demote framing plus the chat-type scope distinguishes it clearly from siblings such as banChatMember, restrictChatMember, and setChatMemberTag without needing to name them.

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 states a concrete precondition (the bot must be an administrator with the appropriate rights) and a decisive operational rule for the inverse case: 'Pass False for all boolean parameters to demote a user'. It does not explicitly route the agent away from alternatives like restrictChatMember, but the when-to-use context is clear.

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