Skip to main content
Glama
WhatsApp Messaging API by Retention Stack

WhatsApp Messaging API by Retention Stack

send_image

Send an image to a contact, group, or channel via a public URL.

Instructions

Send an image to a contact, group, or channel via a public URL.

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": {
      "chatId": "<chatId>",
      "imageUrl": "<imageUrl>"
    },
    "name": "send_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatIdYesRecipient: phone number, group ID, or channel ID
captionNoOptional caption
sessionNoSession name. Leave out when using a session token (ch_live_...).me
imageUrlYesPublic URL of the image

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.1
    • addedInput schema / properties / session / default
      Added value: +"me"
    • changedInput schema / properties / session / description
      Previous value: -"Session name"New value: +"Session name. Leave out when using a session token (ch_live_...)."
    • changedInput schema / required
      Previous value: -[
      -  "session",
      -  "chatId",
      -  "imageUrl"
      -]New value: +[
      +  "chatId",
      +  "imageUrl"
      +]
  2. First observedv1.0.3

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and does not meet it. It says nothing about authentication/session requirements (the schema mentions session tokens but the description does not), supported formats or size limits, whether the image is fetched or re-hosted, or what happens on delivery failure.

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 with no filler; the verb and resource come first and the URL constraint follows. It is efficient but perhaps too sparse for a send operation with no annotation coverage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has four parameters, no annotations and no output schema, so the description should explain side effects, auth/session handling and failure modes. It covers only the bare action, leaving an agent without enough context to call it confidently in edge cases.

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 every parameter is already documented, including the public-URL requirement for imageUrl. The description restates the recipient types and URL constraint without adding syntax, format, or constraint detail 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?

States a specific verb (send) and resource (image) plus the recipient types (contact, group, channel) and the transport constraint (public URL). This distinguishes it from send_text_message and send_file, though the differentiation is implied by the word 'image' rather than stated.

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: 'via a public URL' hints that the image must be publicly reachable (not a local upload), which guides against misuse. However, there is no explicit statement of when to choose this over send_file, and no prerequisites or failure conditions are given.

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