Skip to main content
Glama
wsapi-chat

WSAPI WhatsApp MCP Server

whatsapp_send_image

Deliver images to individual or group chat recipients from base64 data or a public URL, with optional caption, replies, mentions, forwarding, and view-once mode.

Instructions

Send an image, from base64 data or a public URL, with an optional caption, to a user or group JID. The recipient receives it immediately; set viewOnce for a view-once image. Not idempotent. Returns the message ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient JID
urlNoURL of the image
dataNoBase64 encoded image data
captionNoCaption for the image
replyToNoMessage ID to reply to
mentionsNoJIDs of mentioned users
mimeTypeNoMIME type (auto-detected if omitted)
viewOnceNoSend as view-once
isForwardedNoMark as forwarded
replyToSenderIdNoSender JID of the replied message
ephemeralExpirationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv2.0.0
    • changedInput schema / properties / caption / description
      Previous value: -"Caption for the image (max 1024 characters)"New value: +"Caption for the image"
    • removedInput schema / properties / caption / optional
      Removed value: -true
    • addedInput schema / properties / data
      Added value: +{
      +  "description": "Base64 encoded image data",
      +  "type": "string"
      +}
    • addedInput schema / properties / ephemeralExpiration
      Added value: +{
      +  "enum": [
      +    "off",
      +    "24h",
      +    "7d",
      +    "90d"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / imageBase64
      Removed value: -{
      -  "description": "Base64 encoded image data (alternative to imageURL)",
      -  "optional": true,
      -  "type": "string"
      -}
    • removedInput schema / properties / imageURL
      Removed value: -{
      -  "description": "URL of the image to send (alternative to imageBase64)",
      -  "optional": true,
      -  "type": "string"
      -}
    • changedInput schema / properties / isForwarded / description
      Previous value: -"Whether the message should be marked as forwarded"New value: +"Mark as forwarded"
    • removedInput schema / properties / isForwarded / optional
      Removed value: -true
    • changedInput schema / properties / mentions / description
      Previous value: -"List of phone numbers to mention in the caption"New value: +"JIDs of mentioned users"
    • removedInput schema / properties / mentions / optional
      Removed value: -true
    • changedInput schema / properties / mimeType / description
      Previous value: -"MIME type of the image"New value: +"MIME type (auto-detected if omitted)"
    • removedInput schema / properties / mimeType / enum
      Removed value: -[
      -  "image/jpeg",
      -  "image/png",
      -  "image/webp",
      -  "image/gif"
      -]
    • changedInput schema / properties / replyTo / description
      Previous value: -"ID of the message being replied to"New value: +"Message ID to reply to"
    • removedInput schema / properties / replyTo / optional
      Removed value: -true
    • addedInput schema / properties / replyToSenderId
      Added value: +{
      +  "description": "Sender JID of the replied message",
      +  "type": "string"
      +}
    • changedInput schema / properties / to / description
      Previous value: -"Recipient phone number (with @s.whatsapp.net) or group ID (with @g.us)"New value: +"Recipient JID"
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "URL of the image",
      +  "type": "string"
      +}
    • changedInput schema / properties / viewOnce / description
      Previous value: -"Whether the image should be sent as view-once"New value: +"Send as view-once"
    • removedInput schema / properties / viewOnce / optional
      Removed value: -true
    • changedInput schema / required
      Previous value: -[
      -  "to",
      -  "mimeType"
      -]New value: +[
      +  "to"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=false, openWorld=true, destructive=false, so the safety profile is covered. The description adds real value beyond that: immediate delivery to the recipient and the return value (message ID), which annotations do not express. It only echoes the idempotency hint, so it falls short of a 5.

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 short sentences, front-loaded with the action and source modes, then delivery semantics, then return value. No filler and nothing repeated for 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 mutation with no output schema, the description is largely complete: it clarifies the base64-URL source alternatives (a constraint the schema does not encode, since only 'to' is required), notes the viewOnce behavior, and states the return value. Minor gaps remain for params like replyToSenderId and ephemeralExpiration, but nothing essential to correct invocation is missing.

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 91%, so the schema itself documents nearly every parameter. The description reinforces the url/data alternative and the viewOnce flag but adds no format or syntax detail beyond what the schema already provides; baseline 3 is appropriate.

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 an image') plus the two source modes (base64 data or public URL), the destination type (user or group JID), and the optional caption. This is enough to distinguish it from siblings like whatsapp_send_video, whatsapp_send_document, and whatsapp_send_sticker without opening any schema.

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

Usage Guidelines3/5

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

Usage is implied by the description (source selection, viewOnce flag) but there is no explicit when-to-use vs when-not guidance and no named alternative among the many send_* siblings. An agent can infer the context but must supply its own routing logic.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools