Skip to main content
Glama

WhatsApp by GREEN-API

whatsapp_upload_file

Upload a file to GREEN-API storage and return its URL. Use the returned URL with whatsapp_send_file.

Input Schema

NameRequiredDescriptionDefault
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

A3.6/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds the useful fact that files land in GREEN-API storage and a URL comes back, but omits practically important traits for a base64 upload: size limits, whether repeated uploads of the same file duplicate storage, and any expiry of the returned URL.

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?

Two short sentences, no filler. The purpose is front-loaded and the follow-up action is stated immediately after, which is the right order for an agent scanning for callability.

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?

With no output schema, the description correctly compensates by stating that a URL is returned, and it names the next tool in the chain. Only the practical upload constraints (payload size) are missing for an otherwise simple three-parameter, fully documented tool.

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%, with filename, file_base64 and instance_id all documented inline, so the baseline is 3. The description adds no parameter-level detail such as size ceilings on file_base64 or how filename affects the stored object.

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 (upload a file to GREEN-API storage) plus the observable outcome (returns its URL). It distinguishes itself from the send-side siblings by naming whatsapp_send_file as the consumer, though it never mentions whatsapp_send_file_by_upload, which overlaps most directly.

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?

Gives a clear workflow hint ('Use the returned URL with whatsapp_send_file'), which implies when this tool is appropriate. However it gives no exclusion criteria and does not address whatsapp_send_file_by_upload, so an agent cannot tell from this text whether a two-step upload+send is ever preferable to the combined tool.

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