Skip to main content
Glama

Составить или поправить рассылку

broadcasts_save

Manage Telegram broadcast messages: create drafts or edit scheduled campaigns, define audience tags, set run times, add buttons, and validate HTML markup to prevent delivery failures.

Instructions

Без параметра broadcast заводит черновик — он никуда не уходит, пока его не запустят (broadcasts_start). С параметром broadcast правит черновик, а также рассылку, поставленную на срок и ещё не ушедшую. Начавшуюся правкой уже не догнать — её останавливают через broadcasts_cancel. Условия отбора при правке заменяются целиком теми, что переданы, а не дополняются; не передали ни одного — прежние остаются. Разметку HTML панель проверяет здесь же: платформа отбила бы сообщение с незакрытым тегом сразу у всех.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
botNoБот, от имени которого уйдёт сообщение: название, @username или идентификатор. Нужен для новой рассылки; у заведённой бота не меняют.
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
modeNobot — разговор ведёт сценарий; operator — ведёт человек.
tagsNoМетки: подходит любая из перечисленных, а не все сразу.
textNoТекст сообщения. Подстановки: {{имя}}, {{фамилия}}, {{username}}, {{полное_имя}}, {{bot.name}} — незнакомые уйдут получателю как есть.
titleNoНазвание для списка. Без него панель возьмёт начало текста.
run_atNoКогда начать, ISO 8601. Без срока рассылка идёт сразу после запуска. null убирает ранее назначенный срок.
buttonsNoКнопки под сообщением: ряды не больше чем по три, рядов не больше шести. Только ссылки — на нажатие в рассылке отвечать некому.
languageNoЯзык собеседника, как его сообщает платформа: ru, en. Сообщает не всякая.
broadcastNoКакую рассылку править: название или идентификатор. Не указывайте для новой.
parse_modeNoHTML — разметка сообщения. Пусто — обычный текст.
quiet_daysNoМолчат дольше стольких дней.
assigned_toNoТолько разговоры, назначенные этому участнику: почта, имя или идентификатор.
exclude_tagsNoМетки, которые исключают из отбора: «всем клиентам, кроме отписавшихся».
skip_broadcastNoНе слать тем, кто уже получил другую рассылку: её название или идентификатор. Так повтор не приходит дважды.

Schema Changelog

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

  1. Changed2 schema fields changedv0.1.16
    • changedInput schema / properties / language / description
      Previous value: -"Язык собеседника, как его сообщает Telegram: ru, en."New value: +"Язык собеседника, как его сообщает платформа: ru, en. Сообщает не всякая."
    • changedInput schema / properties / parse_mode / description
      Previous value: -"HTML — разметка Telegram. Пусто — обычный текст."New value: +"HTML — разметка сообщения. Пусто — обычный текст."
  2. Addedv0.1.14

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavioral traits: a draft will not send until started, edits don't work once a broadcast has begun, selection criteria replace rather than merge, omitted criteria remain unchanged, and HTML markup is validated at save time. This is substantial value beyond the readOnly/destructive hints.

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 dense but every sentence earns its place: it distinguishes create/edit behavior, names the cancellation sibling, explains selection-criteria semantics, and notes HTML validation. The most important behavioral distinction is front-loaded in the first sentence.

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 a complex tool with 15 parameters and no output schema, the description covers the critical behavioral context: when the tool creates vs edits, when editing is impossible, how to handle a started broadcast, and how selection updates behave. Combined with the 100% schema coverage, an agent has enough to call the tool correctly.

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 the schema already documents all parameters. The description adds meaningful semantics for the key `broadcast` parameter (new vs edit, draft vs scheduled vs started) and clarifies replacement behavior for selection criteria, which is not fully captured by the schema property descriptions.

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 states a specific action and resource: without `broadcast` it creates a broadcast draft; with `broadcast` it edits an existing draft or a scheduled-but-not-yet-sent broadcast. It also clearly distinguishes itself from sibling tools `broadcasts_start` and `broadcasts_cancel`, so an agent can tell when this tool applies.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage rules: omit `broadcast` to create a draft, provide it to edit a draft or scheduled broadcast, and do not attempt to edit an already-started broadcast — instead use `broadcasts_cancel`. This is direct guidance with named alternatives and clear conditions.

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

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