Skip to main content
Glama
grammy-mcp
by louietyj

setMyCommands

Destructive

Updates or replaces a Telegram bot's command list for a chosen scope and language, returning true on success.

Instructions

Use this method to change the list of the bot's commands. See https://core.telegram.org/bots/features#commands for more details about bot commands. 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": {
      "commands": "<commands>"
    },
    "name": "setMyCommands"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoAn object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
commandsYesA list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.
language_codeNoA two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the description doesn't need to argue that this mutates state. It adds a useful "Returns True on success" line, but omits a key behavioral detail: that the supplied list replaces the existing command set, and how scope/language_code interact with existing registrations.

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 the action, followed by a documentation link and the return value. Nothing is wasted 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?

The description is grammatically complete and pairs with a fully described schema, but for a destructive mutation with no output schema it should state that existing commands are overwritten rather than merged. That omission is the main gap an agent would hit in practice.

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 all three parameters – scope, commands and language_code – are already documented in the schema, including defaults and the 100-command limit. The description adds no meaning on top of that, so the baseline of 3 is warranted.

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 names a specific verb and resource: "change the list of the bot's commands." That cleanly distinguishes it from getMyCommands and deleteMyCommands, though it doesn't call out those siblings by name.

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?

Usage is only implied by "change the list" – an agent can infer this is the write counterpart to getMyCommands. There is no explicit guidance on when to prefer this over the delete/get variants, and no mention of prerequisites such as admin rights or scoping decisions.

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