Skip to main content
Glama

Кому уйдёт рассылка

broadcasts_preview
Read-onlyIdempotent

Preview a broadcast before sending: count matching conversations, list first 50 recipients, flag blocked-bot recipients and unresolved placeholders.

Instructions

Прикидка до отправки: сколько разговоров подходит под условия, кто именно (первые 50 по свежести), сколько из них закрыли боту рот и что настораживает в самом сообщении — пустой отбор, слишком широкий, неизвестные подстановки. Разосланное не отзывают, поэтому смотреть надо здесь. Ничего не сохраняет: черновик заводит broadcasts_save. Условия — те же, что у списка разговоров; ни одного условия означает всех собеседников бота.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
botYesБот: название, @username или идентификатор.
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
modeNobot — разговор ведёт сценарий; operator — ведёт человек.
tagsNoМетки: подходит любая из перечисленных, а не все сразу.
textYesТекст сообщения. Подстановки: {{имя}}, {{фамилия}}, {{username}}, {{полное_имя}}, {{bot.name}} — незнакомые уйдут получателю как есть.
buttonsNoКнопки-ссылки: не больше шести рядов по три кнопки. [] снимает все кнопки.
audienceNoУсловия целиком, как в broadcasts_get. audience={} явно снимает все условия; не сочетайте с отдельными mode/tags/assigned_to и другими условиями.
languageNoЯзык собеседника, как его сообщает платформа: ru, en. Сообщает не всякая.
parse_modeNoHTML — разметка сообщения. Пусто — обычный текст. По умолчанию пусто.
quiet_daysNoМолчат дольше стольких дней.
assigned_toNoТолько разговоры, назначенные этому участнику: почта, имя или идентификатор.
exclude_tagsNoМетки, которые исключают из отбора: «всем клиентам, кроме отписавшихся».
joined_afterNoПришли не раньше этого дня: YYYY-MM-DD.
skip_broadcastNoНе слать тем, кто уже получил другую рассылку: её название или идентификатор. Так повтор не приходит дважды.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • addedInput schema / properties / buttons
      Added value: +{
      +  "description": "Кнопки-ссылки: не больше шести рядов по три кнопки. [] снимает все кнопки.",
      +  "items": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "text": {
      +          "maxLength": 64,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "url": {
      +          "maxLength": 512,
      +          "pattern": "^(https?:\\/\\/|tg:\\/\\/|mailto:)\\S+$",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 3,
      +    "type": "array"
      +  },
      +  "maxItems": 6,
      +  "type": "array"
      +}
    • 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"
      +}
  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.6/5.0
Behavior4/5

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

With readOnlyHint=true already covering side-effect safety, the description adds genuinely useful behavior: it saves nothing, caps the preview at 50 by freshness, counts silenced conversations, and surfaces warnings (empty/too-broad selection, unknown substitutions). It does not detail the exact response shape, but the annotation already carries the safety profile.

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?

Dense but front-loaded: the preview outcome and the 'cannot be recalled' motivation come first, the save-nothing note and selection rule follow. Slightly long but every clause conveys distinct information.

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 14-parameter tool with a nested audience object and no output schema, the description compensates by describing what the preview returns (counts, first-50 listing, silenced count, message warnings) and clarifying selection defaults. Nothing essential for correct invocation 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 coverage is 100%, so the baseline is 3, but the description adds cross-tool semantics not present in the schema: audience conditions are 'the same as the conversation list' and an empty condition set selects all counterparts. That meaningfully helps interpret the 14 parameters without re-listing them.

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?

States a specific verb+resource: a pre-send estimate of a broadcast that reports how many conversations match, who (first 50), how many silenced the bot, and message problems. It also names the sibling it is not ('черновик заводит broadcasts_save'), so the agent can distinguish it from the save/start siblings.

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?

Explicitly routes usage: 'смотреть надо здесь' before sending because 'Разосланное не отзывают', and points to broadcasts_save for creating the draft. It also states the selection semantics (no conditions = all counterparts), giving clear when-to-use context.

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