Skip to main content
Glama

Send a private message

send_message

Send a private message to a contact after user approval. Uses approved WhatsApp templates when the 24-hour messaging window has expired.

Instructions

Send a private message to a contact. Two rules that cause most failures: on Facebook, Instagram and WhatsApp a free-form message only reaches someone within 24 hours of their last message, and outside that window WhatsApp needs an approved template (pass template_name). Show the user what you are about to send and let them approve it first — this goes out under their brand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe message, already approved by the user.
id_accountYes
id_contactYes
template_nameNoAn approved WhatsApp template, for messages outside the 24h window.
id_organizationNoThe PlanVortex organization id. Optional.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
already_existedYes
Behavior4/5

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

Annotations already signal a non-read-only side effect (readOnlyHint=false, openWorldHint=true), but the description adds valuable context: messages go out under the user's brand, require user approval, and have platform-specific delivery windows. This goes beyond the structured annotations without contradicting them.

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 sentences, each earning its place: the purpose, the two failure-prone rules, and the approval/brand requirement. It is front-loaded and contains no redundancy.

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?

Given the output schema exists and annotations cover the side-effect profile, the description sufficiently covers the key failure modes and approval workflow. It could be more explicit about the roles of id_account and id_contact, but the overall picture is complete enough for correct invocation.

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 description coverage is 60%, and the description compensates by explaining when template_name is needed and that the text must be user-approved. It does not clarify id_account or id_contact, but those are inferable from the tool name and context, so the added meaning is meaningful but not exhaustive.

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?

The description opens with a specific verb and resource: 'Send a private message to a contact.' This clearly distinguishes the tool from sibling tools like list_messages or reply_to_comment, and the platform-specific rules add further precision about what it does.

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?

The description provides actionable timing rules: free-form messages only work within a 24-hour window on Facebook, Instagram, and WhatsApp, and outside that window WhatsApp requires template_name. This is strong 'when to use' guidance, though it does not explicitly name alternatives or state when to prefer a different tool.

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/taliasoftworks/PlanVortexMCP'

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