Skip to main content
Glama

WSAPI WhatsApp MCP Server

by wsapi-chat

whatsapp_send_document

Send document files to WhatsApp contacts or groups using either a URL or base64 encoded data. Specify recipients, file name, and optional caption to share documents through WhatsApp messaging.

Instructions

Send a document file to a WhatsApp contact or group. Can send from URL or base64.

Input Schema

NameRequiredDescriptionDefault
captionNoCaption for the document (max 1024 characters)
documentBase64NoBase64 encoded document data (alternative to documentURL)
documentURLNoURL of the document to send (alternative to documentBase64)
fileNameYesName of the document file (max 255 characters)
isForwardedNoWhether the message should be marked as forwarded
mentionsNoList of phone numbers to mention in the caption
replyToNoID of the message being replied to
toYesRecipient phone number (with @s.whatsapp.net) or group ID (with @g.us)

Input Schema (JSON Schema)

{ "properties": { "caption": { "description": "Caption for the document (max 1024 characters)", "optional": true, "type": "string" }, "documentBase64": { "description": "Base64 encoded document data (alternative to documentURL)", "optional": true, "type": "string" }, "documentURL": { "description": "URL of the document to send (alternative to documentBase64)", "optional": true, "type": "string" }, "fileName": { "description": "Name of the document file (max 255 characters)", "type": "string" }, "isForwarded": { "description": "Whether the message should be marked as forwarded", "optional": true, "type": "boolean" }, "mentions": { "description": "List of phone numbers to mention in the caption", "items": { "type": "string" }, "optional": true, "type": "array" }, "replyTo": { "description": "ID of the message being replied to", "optional": true, "type": "string" }, "to": { "description": "Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)", "type": "string" } }, "required": [ "to", "fileName" ], "type": "object" }

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/wsapi-chat/wsapi-mcp'

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