Skip to main content
Glama

Подключить или настроить бота

bots_save

Connect new bots via token, restore archived bots with scenarios, or update existing bot settings. Tokens are verified and stored encrypted.

Instructions

Без параметра bot подключает бота по токену или восстанавливает его архивную запись с оставленными сценариями и диалогами. Токен проверяется живым запросом к платформе и хранится зашифрованным. С параметром bot меняет настройки. Смена токена или режима перезапускает работающего бота. Платформу у подключённого бота сменить нельзя: у неё свой вид токена и свои пределы.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
botNoКакого бота менять. Не указывайте при подключении или восстановлении из архива.
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
modeNopolling — панель сама забирает обновления; webhook — платформа шлёт их на панель (нужен публичный адрес по https).
nameNoНазвание бота в панели.
tokenNoТокен бота. Обязателен при подключении. Вид у каждой платформы свой: у Telegram 1234567890:AA… от @BotFather, у MAX — длинная строка без двоеточия из кабинета разработчика. Точный вид и где его брать — operbots_catalog what=platforms.
enabledNoВключён ли бот. false останавливает работающего.
platformNoКуда подключаем нового бота. По умолчанию telegram. У подключённого не меняется.
settingsNoНастройки бота целиком: заменяют прежний объект.
autostartNoЗапускать бота при старте панели.
ai_providerNoПодключение к ИИ-сервису: название или идентификатор. null — отвязать сервис от бота, ничего взамен не назначая.
descriptionNoОписание бота. null — стереть.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • changedInput schema / properties / bot / description
      Previous value: -"Какого бота менять. Не указывайте, чтобы подключить нового."New value: +"Какого бота менять. Не указывайте при подключении или восстановлении из архива."
  2. Changed5 schema fields changedv0.2.0
    • addedInput schema / properties / description / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / description / description
      Previous value: -"Описание бота."New value: +"Описание бота. null — стереть."
    • removedInput schema / properties / description / maxLength
      Removed value: -2000
    • removedInput schema / properties / description / type
      Removed value: -"string"
    • addedInput schema / properties / settings
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Настройки бота целиком: заменяют прежний объект.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  3. Changed3 schema fields changedv0.1.16
    • changedInput schema / properties / mode / description
      Previous value: -"polling — панель сама забирает обновления; webhook — Telegram шлёт их на панель (нужен публичный адрес по https)."New value: +"polling — панель сама забирает обновления; webhook — платформа шлёт их на панель (нужен публичный адрес по https)."
    • addedInput schema / properties / platform
      Added value: +{
      +  "description": "Куда подключаем нового бота. По умолчанию telegram. У подключённого не меняется.",
      +  "enum": [
      +    "telegram",
      +    "max"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / token / description
      Previous value: -"Токен от @BotFather вида 1234567890:AA… Обязателен при подключении."New value: +"Токен бота. Обязателен при подключении. Вид у каждой платформы свой: у Telegram 1234567890:AA… от @BotFather, у MAX — длинная строка без двоеточия из кабинета разработчика. Точный вид и где его брать — operbots_catalog what=platforms."
  4. Changed2 schema fields changedv0.1.14
    • changedInput schema / properties / ai_provider / description
      Previous value: -"Подключение к ИИ-сервису: название или идентификатор."New value: +"Подключение к ИИ-сервису: название или идентификатор. null — отвязать сервис от бота, ничего взамен не назначая."
    • changedInput schema / properties / ai_provider / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  5. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses meaningful behavior: the token is validated by a live platform request and stored encrypted, changing token or mode restarts a running bot, an archived record is restored with its scenarios and dialogs, and a connected bot's platform is immutable. These are exactly the side effects and constraints an agent needs before invoking a non-idempotent, open-world write.

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?

Five tight sentences, front-loaded with the parameter-based mode split, then the token handling, then the restart and platform-immutability caveats. No sentence is redundant and none repeats the schema verbatim.

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

Completeness5/5

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

For an 11-parameter upsert tool with nested objects and no output schema, the description covers the create/restore/update flows and their consequences sufficiently. Return values need not be explained without an output schema, so nothing essential is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds cross-parameter semantics the schema states only piecemeal: that `bot` presence routes between create/restore and update, and that `platform` is frozen once connected. That is genuine value over the per-field schema text.

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 names the specific verb and resource and, crucially, splits the tool into two distinct operations keyed on the presence of the `bot` parameter: connect/restore when absent, reconfigure when present. This distinguishes it cleanly from siblings like bots_get, bots_delete, bots_control, and bots_detach.

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?

It states exactly when to omit `bot` (connecting by token or restoring from archive) versus when to supply it (changing settings), which is real selection guidance. It stops short of naming any sibling alternative or exclusion, so it does not reach a 5.

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