whatsapp_upload_media

Upload a media file to WhatsApp and get a media ID for use in messages.

Server UnClick @unclick/mcp-server
Category Write
Risk class Medium
Parameters 54 required

What whatsapp_upload_media does on UnClick

AI agents use whatsapp_upload_media to create or update resources in UnClick — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your UnClick environment.

ParameterTypeRequiredDescription
filename string
media_url string Yes URL to fetch the media from
mime_type string Yes MIME type, e.g. image/jpeg, video/mp4
bearer_token string Yes
phone_number_id string Yes

Parameters from the server's own tool schema.

Why whatsapp_upload_media needs a policy

This tool creates new media objects in WhatsApp by uploading files, which is a Write operation (reversible, non-destructive modification). While it could facilitate spam or malicious messaging if misused by an AI agent, it doesn't execute arbitrary code, delete data, or move money.

From the tool's definition Tool description states 'Upload a media file to WhatsApp and get a media ID for use in messages' — this is a create/modify operation that stores media on WhatsApp's servers and generates an ID for subsequent use.

Risk signalsAccepts file system path (filename)

Questions about whatsapp_upload_media

What does the whatsapp_upload_media tool do? +

Upload a media file to WhatsApp and get a media ID for use in messages. It is categorised as a Write tool in the UnClick MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does whatsapp_upload_media accept? +

whatsapp_upload_media accepts 5 parameters: filename, media_url, mime_type, bearer_token, phone_number_id. Required: media_url, mime_type, bearer_token, phone_number_id. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on whatsapp_upload_media? +

Register the UnClick MCP server in PolicyLayer and add a rule for whatsapp_upload_media: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches UnClick. Nothing to install.

What risk level is whatsapp_upload_media? +

whatsapp_upload_media is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit whatsapp_upload_media? +

Yes. Add a rate_limit block to the whatsapp_upload_media rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block whatsapp_upload_media completely? +

Set action: deny in the PolicyLayer policy for whatsapp_upload_media. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides whatsapp_upload_media? +

whatsapp_upload_media is provided by the UnClick MCP server (@unclick/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.