Skip to main content
Glama

Social media studio

Upload WhatsApp Template Media

upload_whatsapp_template_media

Upload header media (image/video/document) for a template

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": {
      "accountId": "<accountId>",
      "fileType": "<fileType>"
    },
    "name": "upload_whatsapp_template_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileUrlNoPublicly accessible file URL
fileTypeYesMIME type of the file
accountIdYesWhatsApp social account UUID (or WABA provider ID)
fileBase64NoBase64-encoded file data

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds nothing beyond that: it does not say what the call returns (a media handle/ID?), whether the upload is idempotent or creates a new asset each time, or what permissions are required for the accountId.

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 wasted wording. It is efficient, though its brevity leaves substantive gaps that a slightly longer sentence could have closed.

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?

For a four-parameter mutation with no output schema, the definition should explain the result (media reference/handle) and how the uploaded asset is bound to a template — notably there is no templateId parameter, which the description does nothing to explain. It is under-specified relative to the tool's complexity.

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 coverage is 100%, so all four parameters are documented in the schema itself, which sets the baseline at 3. The description only reinforces fileType by naming image/video/document; it does not clarify the mutually exclusive relationship between fileUrl and fileBase64 or any size/format limits.

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 states a specific verb and resource (upload header media for a template) and enumerates the accepted media kinds. It does not differentiate itself from upload-related siblings such as presign_media_upload or get_media_upload, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when this tool should be used instead of the media-upload siblings, no prerequisite that a template must already exist, and no statement about when to prefer fileUrl over fileBase64. An agent must infer all of this from the schema.

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