Skip to main content
Glama

create_campaign

Create and schedule WhatsApp marketing campaigns with template variables, contact segmentation, and multimedia support for targeted bulk messaging.

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 provided, the description carries the full burden. It successfully adds the '[mutation]' tag indicating a write operation, mentions template variable support, and explains the draft/scheduled behavior. However, for a mass messaging tool, it fails to disclose critical behavioral aspects like rate limiting, immediate vs. deferred sending behavior when not scheduled, or side effects (e.g., credit consumption).

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 efficiently structured with four concise segments: title/purpose ('Crear campana de marketing'), core function ('Crea una nueva...'), operational modes ('Puede crearse como...'), and capabilities ('Soporta variables...'). The '[mutation]' tag is appropriately placed. No redundant or wasted sentences.

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 the tool's complexity (15 parameters including advanced features like recurrence, segmentation, media attachments, and translation), the description is minimal. It mentions template variables and scheduling but doesn't address complex parameter interactions (e.g., recurring_cron requiring is_recurring), return values (campaign ID?), or the campaign lifecycle. For a tool with nested objects and no output schema, more contextual guidance is needed.

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?

The input schema has 100% description coverage, establishing a baseline of 3. The description mentions template variables ({nombre}, {telefono}, {tienda}) and draft/scheduled modes, but these are already well-documented in the schema (message_text description lists variables, scheduled_at describes scheduling). The description adds minimal semantic value beyond what the schema already 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 'Crea una nueva campana de marketing masivo' (creates a new mass marketing campaign). The term 'nueva' distinguishes it from update_campaign, and 'masivo' distinguishes it from individual messaging tools like send_whatsapp_message. However, it doesn't explicitly clarify when to use this versus create_scheduled_message or other campaign creation variants.

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

Usage Guidelines3/5

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

The description provides partial usage guidance by explaining the two creation modes: draft ('borrador') or scheduled ('programarse para una fecha futura'). However, it lacks explicit guidance on when to use this tool versus alternatives like update_campaign or start_campaign, and doesn't clarify prerequisites (e.g., needing a contact list first).

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/wazion-mcp-server'

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