Skip to main content
Glama

WhatsApp by GREEN-API

whatsapp_send_file_by_upload

Destructive

Send a file directly to a chat via multipart upload (no separate URL step)

Input Schema

NameRequiredDescriptionDefault
captionNoFile caption (optional)
chat_idYesChat ID (79001234567@c.us or 120363XXX@g.us)
filenameYesFile name with extension (e.g. photo.jpg)
file_base64YesFile contents encoded as base64
instance_idYesWhatsApp instance ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is carried elsewhere. The description adds only the transport mechanism; it says nothing about payload size limits, base64 encoding overhead, whether the send is irreversible, or what happens on partial failure — meaningful gaps for a destructive write.

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 the key differentiator in parentheses; nothing is wasted. It is arguably too terse rather than padded, which is a different failure than verbosity.

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

Completeness3/5

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

The mechanics of the call are covered and annotations carry the safety profile, but for a destructive file-send with a required base64 payload, the description omits practical constraints (size limits, encoding expectations) that an agent needs before invoking it.

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 (instance_id, chat_id, file_base64, filename, caption) is already documented in the schema. The description contributes no additional parameter meaning, which is the expected baseline when the schema does the heavy lifting.

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 and resource (send a file to a chat) and clarifies the mechanism: multipart upload with no separate URL step. The parenthetical implicitly distinguishes it from whatsapp_send_file/whatsapp_upload_file, though it never names those siblings outright.

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?

The 'no separate URL step' phrasing implies this is the choice when file bytes are in hand rather than a remote URL, but usage is only implied. There is no explicit when-to-use/when-not or named alternative among the four sibling send/upload tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources