Skip to main content
Glama

wa_send_image

Send an image as a WhatsApp photo with an optional caption from a local file or URL.

Instructions

Send an image as a photo with an optional caption — from a local file OR a URL (e.g. an AI-generated image on a CDN).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "to": "<to>"
    },
    "name": "wa_send_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesPhone number (e.g. 923001234567), or full JID ...@g.us
urlNoImage URL to fetch and send (alternative to file_path)
captionNoCaption shown under the photo
file_pathNoAbsolute path of the local image file to send

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses very little beyond what the schema already says. It does not state that the URL is fetched server-side (or what happens if the fetch fails), whether the send is irreversible, whether there are rate limits on media sends, or how errors are reported.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that states the action and the two input modes with no filler. The parenthetical CDN example is mildly illustrative rather than essential, but it costs little.

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 four-parameter outbound media tool with full schema coverage and no output schema, the definition covers purpose, required recipient, and both source modes adequately. The remaining gap is failure behavior and media constraints, which matters for a send action with no annotation-level safety signal.

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 baseline is 3; the schema already documents to, url, caption and file_path individually. The description adds one genuinely new piece of meaning by presenting url and file_path as mutually exclusive alternatives, but it does not elaborate on caption limits or recipient JID formats beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb and resource ('Send an image as a photo') and specifies the two supported transports (local file or URL), which separates it from the other wa_send_* media tools without naming them. It stops short of an explicit contrast with wa_send_document or wa_send_sticker, which matters because the photo-vs-file distinction is the main routing decision here.

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 only implied: the tool is for images, and URL versus local file is framed as an either/or. There is no guidance on when to prefer a URL over a file path, no note that the recipient must be a valid WhatsApp number/JID, and no mention of size or format constraints that would tell an agent when this tool would fail.

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