Skip to main content
Glama

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

broadcasts_save

Create or update a Telegram broadcast draft or scheduled message, with audience filters, buttons, and HTML checks before launch.

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Кнопки-ссылки: не больше шести рядов по три кнопки. [] снимает все кнопки.
audienceNoУсловия целиком, как в broadcasts_get. audience={} явно снимает все условия; не сочетайте с отдельными mode/tags/assigned_to и другими условиями.
languageNoЯзык собеседника, как его сообщает платформа: ru, en. Сообщает не всякая.
broadcastNoКакую рассылку править: название или идентификатор. Не указывайте для новой.
parse_modeNoHTML — разметка сообщения. Пусто — обычный текст.
quiet_daysNoМолчат дольше стольких дней.
assigned_toNoТолько разговоры, назначенные этому участнику: почта, имя или идентификатор.
exclude_tagsNoМетки, которые исключают из отбора: «всем клиентам, кроме отписавшихся».
joined_afterNoПришли не раньше этого дня: YYYY-MM-DD.
skip_broadcastNoНе слать тем, кто уже получил другую рассылку: её название или идентификатор. Так повтор не приходит дважды.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.2.0
    • addedInput schema / properties / audience
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Условия целиком, как в broadcasts_get. audience={} явно снимает все условия; не сочетайте с отдельными mode/tags/assigned_to и другими условиями.",
      +  "properties": {
      +    "assigned_to": {
      +      "anyOf": [
      +        {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "exclude_tags": {
      +      "items": {
      +        "maxLength": 24,
      +        "type": "string"
      +      },
      +      "maxItems": 10,
      +      "type": "array"
      +    },
      +    "joined_after": {
      +      "anyOf": [
      +        {
      +          "format": "date",
      +          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "language": {
      +      "anyOf": [
      +        {
      +          "maxLength": 12,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "mode": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "bot",
      +            "operator"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "quiet_days": {
      +      "anyOf": [
      +        {
      +          "maximum": 365,
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "skip_broadcast_id": {
      +      "anyOf": [
      +        {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "tag": {
      +      "anyOf": [
      +        {
      +          "maxLength": 24,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "tags": {
      +      "items": {
      +        "maxLength": 24,
      +        "type": "string"
      +      },
      +      "maxItems": 10,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / bot / description
      Previous value: -"Бот, от имени которого уйдёт сообщение: название, @username или идентификатор. Нужен для новой рассылки; у заведённой бота не меняют."New value: +"Бот, от имени которого уйдёт сообщение: название, @username или идентификатор. Нужен для новой рассылки; у черновика можно сменить, если нет вложения."
    • changedInput schema / properties / buttons / description
      Previous value: -"Кнопки под сообщением: ряды не больше чем по три, рядов не больше шести. Только ссылки — на нажатие в рассылке отвечать некому."New value: +"Кнопки-ссылки: не больше шести рядов по три кнопки. [] снимает все кнопки."
    • addedInput schema / properties / buttons / items / items / additionalProperties
      Added value: +false
    • removedInput schema / properties / buttons / items / items / properties / text / description
      Removed value: -"Надпись на кнопке."
    • removedInput schema / properties / buttons / items / items / properties / url / description
      Removed value: -"Адрес: https://, http://, tg:// или mailto:"
    • addedInput schema / properties / buttons / items / items / properties / url / pattern
      Added value: +"^(https?:\\/\\/|tg:\\/\\/|mailto:)\\S+$"
    • addedInput schema / properties / joined_after
      Added value: +{
      +  "description": "Пришли не раньше этого дня: YYYY-MM-DD.",
      +  "format": "date",
      +  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +  "type": "string"
      +}
    • addedInput schema / properties / run_at / anyOf
      Added value: +[
      +  {
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / run_at / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
  2. 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 — разметка сообщения. Пусто — обычный текст."
  3. Addedv0.1.14

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the safety profile (write, non-idempotent, open world); the description adds non-obvious behavior: drafts never send until broadcasts_start, edits replace audience conditions wholesale rather than merging, omitted conditions leave prior ones intact, and HTML is validated at save time because the platform would otherwise reject the message for all recipients at once.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the central create/edit branch, then lifecycle, mutation and validation semantics; six dense sentences with essentially no filler, though the paragraph is tightly packed for a 17-parameter tool.

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 17-parameter, nested-object mutation tool with no output schema, the description supplies the lifecycle, mutation-replacement, and validation context an agent needs to call it correctly; per-parameter detail is fully carried by the 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 the baseline is 3, but the description adds cross-parameter semantics the schema states only locally: the absent-vs-present role of `broadcast`, and the replace-not-supplement rule for audience fields on edit.

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 first sentence states a specific verb+resource branching: without `broadcast` it creates a draft, with it, edits an existing draft or scheduled broadcast. It distinguishes itself from siblings by naming broadcasts_start and broadcasts_cancel as the routes for other lifecycle states.

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?

Explicit when-to-use rules: omit `broadcast` for a new one, pass it to edit; an already-started broadcast cannot be edited and must go through broadcasts_cancel; the bot can only be swapped after detaching the attachment. Alternatives and exclusion conditions are stated rather than implied.

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