Skip to main content
Glama

postcache

upload_media

Upload an image or video for a social platform. Returns a public URL that passes the platform media rules, or the problems with fixes. With convert, a fixable file comes back as status "converting": poll get_media until status is "ready" (url set) or "failed". Give the URL to the platform API (image_url / video_url), then call delete_media.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ttlNoSeconds the URL stays valid, 3600-604800, default 86400.
targetYesPlatform the file is for.
convertNoFix what fails the platform rules by cropping or padding and re-encoding.
filenameNo
source_urlNoPublic http(s) URL to fetch the file from.
data_base64NoThe file, base64-encoded (max 10 MB). Use source_url for larger files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources