Skip to main content
Glama

Состояние рассылок

get_mailing_state
Read-onlyIdempotent

Состояние e-mail рассылок аккаунта: кампании и их показатели, получатели и что стало с их письмами, списки контактов, шаблоны, репутация отправителя, остаток писем, настройки и журнал отправок. Что именно показать, задаёт section — там же сказано, какой раздел чего требует. Это рассылки по контактным спискам; письма, которые шлёт сам опрос (уведомление автору о новом ответе, копия ответа респонденту), настраиваются другими инструментами — get_quiz_email_settings и соседними. Только чтение: отправить кампанию, править её, списки и шаблоны, покупать письма через ассистента нельзя — письмо уходит живым людям, и отменить его невозможно. Контакты загружают файлом, это тоже вне ассистента.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_id": "<workspace_id>",
      "section": "<section>"
    },
    "name": "get_mailing_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoЗа сколько дней считать репутацию. По умолчанию 30.
limitNoЗаписей за раз, 1–200. По умолчанию 50.
offsetNoСколько записей пропустить.
searchNoПоиск: по названию и теме — в campaigns, по адресу — в recipients.
list_idNoID списка контактов. Обязателен для contacts.
sectionYesЧто показать. campaigns — список кампаний со сводкой (что отправлено, что в черновиках, что на модерации); campaign — одна кампания с показателями, нужен campaign_id; recipients — получатели этой кампании с фильтрами statuses и quiz_statuses, нужен campaign_id; contact_lists — списки контактов и сводка по ним; contacts — контакты одного списка, нужен list_id; templates — шаблоны писем; reputation — доля отказов и жалоб за период days (по ней почтовые службы решают, пускать ли письма дальше); balance — сколько писем осталось; settings — отправитель и своя почтовая служба; smtp_logs — журнал отправок. Начинайте с campaigns: идентификаторы кампаний берутся оттуда, а списков — из contact_lists.
statusesNoСтатус письма у получателя, для recipients. Значения: sent — отправлено, delivered — доставлено, opened — открыл, clicked — перешёл по ссылке, bounced — не доставлено, unsubscribed — отписался, complaint — пожаловался на спам. У получателя один статус — последнее случившееся событие, поэтому открывшие письмо не попадают в delivered, а перешедшие по ссылке — в opened: чтобы собрать «дошло письмо» целиком, перечислите все нужные значения. Пустой список — все получатели.
campaign_idNoID кампании. Обязателен для campaign и recipients.
workspace_idYesID аккаунта из workspace://list.
quiz_statusesNoПрохождение опроса получателем, для recipients: none — не начинал, started — начал и не закончил, completed — прошёл до конца. По нему отбирают тех, кому досылать письмо. Пустой список — все. У кампании без привязки к опросу прохождение неизвестно ни у кого, и фильтр вернёт пустой список.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false; the description reinforces this with concrete forbidden operations and a rationale (письмо уходит живым людям, отменить невозможно) plus the note that contacts are loaded by file outside the assistant. It stops short of describing pagination behaviour for list sections or the shape of returned records.

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 resource description, then the section pointer, then disambiguation, then the read-only boundary — logical order with no filler. The single dense paragraph is efficient, though the section enumeration and the constraint sentence could be broken up for faster scanning.

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?

For a 10-parameter, multi-mode tool with no output schema, the description covers the section breakdown, the workflow entry point and the tool's limits, which is what an agent needs to pick a section. Minor gap: nothing about how limit/offset interact across sections or what a result payload contains.

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 coverage is 100% and the schema itself exhaustively documents section, statuses, quiz_statuses and the id prerequisites, so the description's contribution is limited. It does add cross-parameter routing value by telling the agent that `section` encodes which fields each section requires and that campaigns should be queried first.

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?

Names the specific resource (состояние e-mail рассылок аккаунта) and enumerates its sub-resources — кампании, получатели, списки, шаблоны, репутация, баланс, настройки, журнал отправок. It also draws an explicit boundary against the quiz-mail tools (get_quiz_email_settings и соседние), so an agent can tell the two families apart without opening a schema.

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?

Gives an entry-point rule ('Начинайте с campaigns: идентификаторы кампаний берутся оттуда, а списков — из contact_lists'), points to `section` for per-section prerequisites, and states what this tool cannot do (send/edit/upload contacts). The alternative for quiz notification emails is named explicitly, covering both when-to-use and when-not.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources