Skip to main content
Glama

DripRaven WhatsApp campaigns

send_broadcast

Destructive

Send or schedule a broadcast: one approved template to every contact in a segment. Omit scheduled_at to send immediately. Validates the template is APPROVED and that every body placeholder is mapped to a contact field — a template with any unmapped placeholder is REJECTED with TEMPLATE_VARIABLES_UNMAPPED (the error's meta.unmapped_placeholders lists which). If you hit that, map them with set_template_variables, then retry. Call preview_broadcast FIRST to show the user the rendered message and catch this before sending. Returns { campaign_id, contact_count, scheduled_at } — use campaign_id with get_campaign_stats. For a new or unfamiliar workspace, call get_started FIRST and complete any missing setup steps before scheduling — otherwise the broadcast will not be delivered. On failure the error's meta field explains the fix: CHANNEL_NOT_CONNECTED means no WhatsApp number is connected (use whatsapp_connect_link); SUBSCRIPTION_REQUIRED or MONTHLY_LIMIT_REACHED means no active plan (use get_subscribe_link). Give the user the link, then retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
segment_idYes
template_idYes
scheduled_atNoISO 8601 datetime with offset; omit to send now
timezone_modeNo"account" (default): one send time for everyone

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Discloses validation behavior (requires APPROVED template, rejects unmapped placeholders), the exact error code and its metadata, side effects (sends to every contact), and return values. Goes far beyond the annotations (which only indicate destructive and open-world) by explaining failure modes and fixes.

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?

Long but every sentence adds critical value. Front-loaded with the core action, then covers prerequisites, error handling, and alternatives in a logical order. No redundancy or filler.

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?

Given the complexity (error codes, prerequisites, return values, alternatives), the description is exhaustive. It explains what the tool does, when to use it, how to handle failures, and what it returns, all within a single coherent definition.

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?

Compensates for the 50% schema coverage by explaining the effect of scheduled_at (omit to send now) and timezone_mode (account vs contact). Also implicitly clarifies segment_id and template_id via the resource description and ties template_id to validation behavior.

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 (send or schedule) and a precise resource (broadcast: one approved template to every contact in a segment). Clearly distinguishes from siblings like preview_broadcast and set_template_variables by name and purpose.

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 instructs to call preview_broadcast FIRST, to call get_started for new workspaces, and names alternatives for specific errors (set_template_variables for unmapped placeholders, get_subscribe_link for billing issues). Provides clear when-to-use and when-not-to-use guidance.

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