Skip to main content
Glama

Настроить меню команд

bots_commands_apply

Apply a desired command list to a bot: add missing commands, update existing ones, reorder them, and optionally remove extras. Sync the Telegram menu immediately or on restart.

Instructions

Приводит меню команд бота к переданному списку: недостающие команды добавляет, существующие обновляет, порядок расставляет по порядку в списке. Команды, которых нет в списке, сохраняются — чтобы удалить их, передайте remove_missing=true. Само меню в Telegram обновляется, только если sync=true или бот перезапущен.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
botYesБот: название, @username или идентификатор.
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
syncNoСразу отправить меню в Telegram. По умолчанию да.
commandsYesЖелаемое меню целиком, в нужном порядке.
remove_missingNoУдалить команды бота, которых нет в списке. По умолчанию нет.
Behavior5/5

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

Beyond the annotations, the description discloses critical traits: unlisted commands are kept by default, removal requires remove_missing=true, and the Telegram menu update only occurs when sync=true or after a bot restart. This provides significant insight into side effects beyond the basic annotations.

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 three sentences, front-loaded with the main action, and every sentence adds value. It packs essential details without redundancy, making it easy to parse.

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 mutation tool with no output schema and 5 parameters, the description covers the core behavior, edge cases (keep vs remove), and external effects (Telegram menu sync). It provides sufficient context for an agent to invoke the tool correctly, though return values are not described.

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?

The input schema already covers all parameters with descriptions (100% coverage). The description reinforces the semantics of remove_missing and sync but does not add new parameter-level information beyond what the schema provides. Baseline 3 is appropriate.

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 uses a specific verb 'приводит ... к' (brings to) with a clear resource 'меню команд бота' and details the exact operations: adds missing commands, updates existing ones, and reorders according to the list. This unambiguously distinguishes it from sibling tools like bots_save or bots_control.

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?

The description gives clear behavioral context, such as the default preservation of unlisted commands and the condition for updating the Telegram menu via sync. However, it does not explicitly name alternatives or exclusions relative to other tools, but the operation is self-contained and well-scoped.

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/uk-kd/operbots-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server