Skip to main content
Glama

sendAnnouncement

Destructive

Creates an announcement and dispatches it (email + in-app) to testers of the beta project. The announcement is recorded and its delivery is queued; individual email or in-app delivery failures are logged and do not surface here. The response carries the announcementId that listAnnouncements reports (with recipient and view counts). TWO-STEP TOOL: call it WITHOUT confirmationToken first — nothing is sent and you receive a preview plus a confirmationToken. Show the preview to the user; only after the user explicitly approves, call again with the SAME arguments plus the confirmationToken. Tokens are single-use and expire after a few minutes. Audience targeting (pick exactly one): allTesters=true reaches every tester; usersIds targets specific testers by their user ids from getBetaTesters; tagIds targets everyone carrying any of the given tester tags from listTesterTags (smart tags included), narrowed to this beta project's testers.

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": {
      "productId": "<productId>",
      "text": "<text>",
      "audience": "<audience>"
    },
    "name": "sendAnnouncement"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe announcement body (1 to 600 characters). Only bold, italic, underline, line-break and span tags survive; every other tag, links included, is removed. A URL written as plain text stays in the text.
audienceYesWho receives the announcement. Set exactly one of: allTesters=true, usersIds, or tagIds.
productIdYesID of the beta project to query. Get valid IDs from the listProducts tool.
attachmentIdNoOptional attachment handle from uploadMedia (target 'announcement').
confirmationTokenNoTwo-step confirmation token. Omit on the first call to receive a preview plus a token; then call again with the SAME arguments plus this token to execute. Single-use and short-lived.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / audience / properties / usersIds / description
      Previous value: -"User ids returned by getBetaTesters. Use when targeting specific testers. Never invent ids."New value: +"User ids returned by getBetaTesters. Use when targeting specific testers; the preview names each of them, and an id that is not a tester of this beta project is refused. Never invent ids."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses that delivery is queued, that per-recipient email/in-app failures are logged and do not surface in the response, that tokens are single-use and expire in minutes, and that empty tag sets are refused rather than silently sending to nobody. These are exactly the operational traits an agent needs before triggering an irreversible send.

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 action and the two-step gate, and every sentence carries operational content. It is dense but slightly repetitive, since the audience rules are restated from the nested schema descriptions, costing a bit of length.

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 destructive, nested-object, five-parameter tool with no output schema, the definition covers the send flow, the failure semantics, the idempotency/preview contract, and what the response identifier is used for. Nothing an agent needs to invoke it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds meaning: the mutual exclusivity of the audience branches, that smart tags are included, that ids must never be invented and non-tester ids are refused, and that confirmationToken must be paired with identical arguments. It also explains what the returned announcementId maps to in listAnnouncements.

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 opening sentence names a specific verb (creates and dispatches), the resource (announcement), the channels (email + in-app) and the audience (testers of the beta project). An agent can distinguish it from listAnnouncements or getBetaTesters without opening any 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?

The two-step flow is spelled out with an explicit when-not condition (first call sends nothing), the approval gate, and the requirement to reuse the SAME arguments. Audience targeting gives a clear selection rule (exactly one of allTesters/usersIds/tagIds) and points to getBetaTesters and listTesterTags for sourcing ids.

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