Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

setMyCommands

Set or update your Telegram bot's command list, defining up to 100 commands with descriptions and optional scopes.

Instructions

Change the list of bot commands. Returns True on success. At most 100 commands can be specified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoScope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
commandsYesA list of bot commands to set. Each command object must have 'command' (1-32 chars) and 'description' (1-256 chars).
language_codeNoTwo-letter ISO 639-1 language code. If empty, commands apply to all users from the given scope.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

There are no annotations, so the description must carry the behavioral burden. It discloses that the operation returns True on success and enforces a maximum of 100 commands, which is useful. It does not, however, clarify that this replaces the existing command list for the given scope, nor explain consequences for previously set commands.

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?

The description is two short sentences with no redundant wording. It states the core action first, then immediately provides the return value and the key limit. 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?

Given the detailed input schema and the simple return value, the description is mostly complete: it covers return behavior and an important constraint. The main missing context is the replacement semantics—whether setMyCommands overwrites the existing command list for the target scope. That omission is notable but not fatal given the tool name and schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already well documented with detailed descriptions. The description adds extra value by stating the critical constraint that at most 100 commands can be specified, which is not present as maxItems in the schema. This strengthens the agent's understanding of the commands array parameter.

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 clearly states the tool's action: 'Change the list of bot commands.' It also specifies the resource (bot commands) and adds a return-value detail ('Returns True on success'). This is specific enough to distinguish it from siblings like getMyCommands and deleteMyCommands.

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 implies when to use this tool—when the bot command list needs to be changed—and the sibling context includes getMyCommands/deleteMyCommands. However, it does not explicitly mention alternatives or say when to prefer deleteMyCommands over setMyCommands, such as when removing all commands. The usage context is clear but not explicitly contrasted with related tools.

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