Skip to main content
Glama

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

bots_commands_apply

Align a bot's command menu to your desired list: add missing commands, update existing ones, and reorder. Optionally remove unlisted commands and sync menu changes to the platform immediately.

Instructions

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.16
    • changedInput schema / properties / commands / items / properties / description / description
      Previous value: -"Пояснение в меню Telegram."New value: +"Пояснение в меню бота."
    • changedInput schema / properties / sync / description
      Previous value: -"Сразу отправить меню в Telegram. По умолчанию да."New value: +"Сразу отправить меню платформе. По умолчанию да."
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior5/5

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

The description richly discloses behavior beyond the sparse annotations: missing commands are added, existing ones updated, unspecified commands are preserved unless remove_missing=true, and the platform menu only updates when sync=true or the bot restarts. This gives the agent a clear model of side effects and conditional behavior.

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 focused sentences with the core behavior front-loaded and the important edge conditions separated into a second sentence. Every clause adds information and there is no filler.

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?

The description provides a complete operational model for an apply-style command, including default non-destructive behavior and the sync condition, while the schema covers parameter details. It does not describe return values or error cases, and there is no output schema, which is a minor gap but not a blocker for correct invocation.

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 structured schema already documents every parameter, including remove_missing and sync. The description mentions remove_missing and sync semantics but does not add much per-parameter meaning beyond the schema, so the baseline 3 applies.

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 states a specific action and resource: aligns the bot's command menu to the provided list, explaining add/update/reorder behavior. It is clearly distinct from generic bot tools, though it does not explicitly name or exclude sibling tools, so it stops short of a 5.

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 clearly implies when to use the tool — when you want to force a bot command menu to match a desired list — but it never states explicit selection criteria or contrasts with alternatives. The usage context is inferable but not directly guided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.