Skip to main content
Glama

AiSensy MCP by usefulapi

Send WhatsApp message

aisensy_send_message
Destructive

WRITE, SENDS A WHATSAPP MESSAGE TO A CUSTOMER AND MAY SPEND AISENSY CREDIT: send either a free-text message (type=text; WhatsApp only delivers it inside the 24-hour window after the customer last wrote) or an approved template (type=template with template_name, language_code and body_params). Not idempotent. Show the user the recipient and the text first and set confirm=true only after they approve. POST /project/{project_id}/messages.

Input Schema

NameRequiredDescriptionDefault
textNoMessage text (type=text).
typeYestext = free-form reply; template = an approved template.
confirmYesMust be true. Set it only after the user has seen and approved the recipient and the message in this conversation.
body_paramsNoValues for the template's body {{1}}, {{2}}... in order (type=template).
phone_numberYesPhone number with country code, e.g. 919876543210 (digits; a leading + is dropped).
language_codeNoTemplate language code such as en, en_US, hi (type=template; default en).
template_nameNoApproved template name (type=template).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing cost ('may spend aisensy credit'), the WhatsApp 24-hour delivery constraint that determines whether a send will even land, and a mandatory human-approval gate tied to confirm=true. Annotations already cover destructive/non-idempotent, so the description is adding genuinely new operational context rather than restating hints.

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 highest-stakes facts (WRITE, sends, may cost credit), then the mode branch, then the confirmation protocol. Dense but every clause carries decision-relevant information; 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 a destructive, credit-spending mutation with no output schema, the description covers cost, delivery preconditions, and the approval workflow, which are the things an agent must know before calling. It omits what a successful send returns (message id) and any failure/rate-limit behavior, leaving a modest gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds the conditional dependency between 'type' and the required companion fields (template_name, language_code, body_params), which the flat schema does not express. It doesn't add format detail for phone_number beyond the schema, so it sits just above baseline.

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) and resource (WhatsApp message to a customer), then names the two mutually exclusive modes (free-text vs approved template) with the exact type value for each. An agent can distinguish this from campaign-sending siblings like aisensy_send_campaign_message purely from the description.

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 a concrete when-to-use rule for each mode: free text only inside the 24-hour window after the customer last wrote, otherwise an approved template. It does not explicitly route away from the campaign-sending siblings, so the alternative-selection guidance is strong but not complete.

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.