Skip to main content
Glama

create_campaign

Create a marketing campaign for mass WhatsApp messaging. Supports draft, scheduling, template variables, segmentation, media attachments, and recurrence.

Instructions

Crear campana de marketing — Crea una nueva campana de marketing masivo. Puede crearse como borrador o programarse para una fecha futura. Soporta variables de plantilla {nombre}, {telefono}, {tienda} en el mensaje. [mutation]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre de la campana
message_textYesTexto del mensaje. Soporta variables: {nombre} (nombre del contacto), {telefono} (telefono del contacto), {tienda} (nombre de la tienda)
list_idYesID de la lista de contactos a usar para esta campana
send_interval_secondsNoSegundos entre cada envio (minimo 10, por defecto 30)
translate_by_prefixNoSi true, traduce el mensaje al idioma del destinatario segun prefijo telefonico
include_unsubscribe_linkNoSi true, anade un enlace de baja al final del mensaje
archive_after_sendNoSi true, archiva automaticamente cada chat de WhatsApp tras enviar el mensaje
session_idsNoArray de IDs de sesion de WhatsApp a usar para enviar. Si no se especifica, usa todas las sesiones habilitadas para marketing masivo. Usa get_whatsapp_status para ver los IDs.
scheduled_atNoFecha y hora para programar el envio (formato: YYYY-MM-DD HH:MM:SS). Debe ser una fecha futura. Si se especifica, la campana se crea con estado 'scheduled' en vez de 'draft'.
segment_filtersNoFiltros de segmentacion para enviar solo a contactos que cumplan criterios. Objeto con claves opcionales: tags (array de nombres de tags), last_contact_days (entero, enviar solo a contactos con actividad en los ultimos N dias), has_whatsapp_history (boolean, enviar solo a contactos con historial de WhatsApp)
media_urlNoURL del archivo multimedia a enviar con el mensaje (imagen, video, documento). Debe ser una URL publica accesible.
media_typeNoTipo de multimedia: 'image', 'video' o 'document'. Requerido si se especifica media_url.
media_filenameNoNombre del archivo multimedia. Requerido para tipo 'document'.
is_recurringNoSi true, la campana se ejecuta de forma recurrente segun recurring_cron
recurring_cronNoExpresion cron para campanas recurrentes (ej: '0 10 * * 1' para cada lunes a las 10:00). Requerido si is_recurring es true.
Behavior3/5

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

With no annotations, the description carries the full burden. It adds value by mentioning draft/scheduled states and template variables, but does not disclose side effects, return value, or required permissions. The [mutation] tag hints at write behavior but is not part of annotations.

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?

The description is two sentences plus a tag, concise and front-loaded with purpose. No wasted words, though more detail could be added without losing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 15 parameters, no output schema, and complex behavior (draft/scheduled, variables), the description covers key points but lacks details on post-creation actions, how to start later, or permission requirements. Adequate but not exhaustive.

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%, so baseline is 3. The description only repeats information already in parameter descriptions (e.g., template variables). It adds no new meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it creates a new marketing campaign (verb 'Crear' and resource 'campana de marketing'), supports draft or scheduled creation, and mentions template variables. It distinguishes from siblings like start_campaign, but does not explicitly contrast with other create tools like create_contact_list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives (e.g., duplicate_campaign, create_scheduled_message). No prerequisites or exclusions mentioned. The description implies the tool is for creating campaigns but does not help an agent decide between similar tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wazionapps/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server