Skip to main content
Glama
grammy-mcp
by louietyj

setChatAdministratorCustomTitle

Destructive

Sets a custom title for an administrator in a supergroup promoted by the bot, returning True on success.

Instructions

Use this method to set a custom title for an administrator in a supergroup promoted by the bot. 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>",
      "custom_title": "<custom_title>"
    },
    "name": "setChatAdministratorCustomTitle"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
user_idYesUnique identifier of the target user
custom_titleYesNew custom title for the administrator; 0-16 characters, emoji are not allowed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so safety profile is covered. The description adds the useful fact that it returns True on success, which matters since there is no output schema. However, it omits that the bot must itself be an administrator with promotion rights, and that the new title replaces any existing custom title, which are the key behavioral risks for a destructive mutation.

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?

Two short sentences, front-loaded with the capability and ending with the return value. Only minor waste in the lead-in 'Use this method to', but nothing is padded or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All three required parameters are documented in the schema and the return value is stated, so the mechanics of calling are covered. For a destructive write tool with no output schema, the description could still say more about permission prerequisites and overwrite effects on an existing title.

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%, including the 0-16 character limit and emoji restriction on custom_title and the @username format for chat_id. The description adds no parameter meaning beyond that, which is the expected baseline when the schema does the full job.

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: setting a custom title for an administrator in a supergroup. It also scopes the case to administrators promoted by the bot, which meaningfully separates it from sibling setChatTitle (chat title) and setChatMemberTag. It does not explicitly name an alternative, so it falls short of the top mark.

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 phrase 'in a supergroup promoted by the bot' implicitly defines the prerequisite context: the tool applies only to bot-promoted admins in supergroups. There is no explicit when-not guidance, no mention of what to use instead for regular members or basic admin rights (e.g. setMyDefaultAdministratorRights), so usage is implied rather than spelled out.

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