Skip to main content
Glama

AiSensy MCP by usefulapi

Send campaign message

aisensy_send_campaign_message
Destructive

WRITE, SENDS A WHATSAPP MESSAGE TO A CUSTOMER AND SPENDS AISENSY CREDIT: send the template of a LIVE API campaign to one phone number (a new contact is created if the number is unknown). Not idempotent: every call sends again. template_params must match the template's parameter count. Show the user the recipient and the template first and set confirm=true only after they approve. POST /project/{project_id}/campaign/api/send.

Input Schema

NameRequiredDescriptionDefault
nameYesRecipient's name.
tagsNoExisting tags to put on the contact (unknown tags are ignored).
sourceNoLead source label.
confirmYesMust be true. Set it only after the user has seen and approved the recipient and the message in this conversation.
media_urlNoPublic https URL of the image/video/document for a media template.
attributesNoContact attributes as name → text value. AiSensy ignores attribute names that do not exist in the project.
phone_numberYesPhone number with country code, e.g. 919876543210 (digits; a leading + is dropped).
campaign_nameYesName of a LIVE API campaign (see aisensy_list_api_campaigns).
media_filenameNoFile name shown for the media.
template_paramsNoValues for the template's {{1}}, {{2}}... in order; the count must match the template.
default_country_codeNoCountry code to assume when phone_number has none, e.g. 91.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantive behavior beyond the annotations: the call spends AiSensy credit, creates a new contact when the number is unknown, resends on every call, and requires a human approval gate before confirm=true. Those are the exact side effects an agent needs before firing a destructive, non-idempotent write.

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?

Front-loaded with the risk signal (WRITE, SPENDS CREDIT) before any detail, then a compact colon-separated chain of constraints and the endpoint. Every clause carries operational value; nothing is padding.

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 11-parameter destructive write with nested objects, it covers cost, idempotency, contact creation, and the approval gate. It says nothing about the response (no output schema exists) or media-template requirements, though the schema covers those parameter-level details.

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 description coverage is 100%, so the schema already documents all 11 parameters including template_params ordering and confirm semantics. The description only restates the template_params count constraint and the confirmation workflow, adding little new parameter meaning.

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 and resource ('send the template of a LIVE API campaign to one phone number') and flags it as a write that costs credit. This clearly separates it from the generic sibling aisensy_send_message and from read tools like aisensy_list_api_campaigns.

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?

Gives explicit prerequisites: show the user the recipient and template first and set confirm=true only after approval, and points at aisensy_list_api_campaigns to find a LIVE campaign. It does not explicitly say when to prefer aisensy_send_message over this tool, so it stops short of full alternative routing.

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.