Skip to main content
Glama

Enviar una campaña de WhatsApp

whatsapp_send_campaign
DestructiveIdempotent

Envía ahora una campaña preparada a toda su lista. Es un envío masivo que no se puede deshacer: antes dile al usuario el nombre, la plantilla y cuántos destinatarios tiene, y espera su sí explícito. Una campaña ya enviada o en curso no se vuelve a mandar.

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "whatsapp_send_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
brand_idNoID de la marca (de list_brands). Usa solo la marca que el usuario nombró; si no la nombró y hay varias, pregúntale cuál.
campaign_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds the concrete meaning behind both: this is a mass send that cannot be undone, and already-sent or in-flight campaigns will not be dispatched again. It also supplies a required confirmation guardrail (name, template, recipient count, explicit user consent) that no annotation conveys.

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?

Three tight sentences, front-loaded with the action, then the risk, then the mandatory confirmation step and the idempotency rule. No filler or repetition.

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 an irreversible mass-send tool with no output schema, the description covers the critical gaps: irreversibility, confirmation protocol, and non-resend behavior. Minor omissions remain, such as how the agent obtains campaign_id and what the response reports after dispatch.

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 50%: brand_id is documented in the schema, but campaign_id has no schema description. The description refers to a 'prepared campaign' and its name/template/recipients but never explains that campaign_id identifies it or where to obtain it (presumably whatsapp_create_campaign). Baseline 3 for partial coverage with only marginal added meaning.

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 opens with a specific verb and resource: sending an already-prepared campaign to its full list, immediately ('Envía ahora'). The phrase 'campaña preparada' implicitly separates it from whatsapp_create_campaign and 'ahora' from whatsapp_schedule_message, but neither sibling is named outright, so differentiation relies on inference.

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

Usage Guidelines4/5

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

It gives a clear usage protocol: before sending, tell the user the campaign name, template and recipient count, and wait for an explicit yes. It also states the exclusion case (a campaign already sent or in progress is not re-sent). It stops short of naming the alternative tools to use when the user wants to schedule rather than send now.

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