Skip to main content
Glama

Upload media

media.upload

A link to send one of the user's files to this server, for files on their phone or computer that the server can't read, including a file attached in the chat that the chat app doesn't hand you. Give the user the url: they open it on their phone or computer and pick the file; the page sends it and resumes on its own. Then media.import {source: {upload_id}}; media.import says whether the file is all in yet. The URL needs no other credentials and works for a day. If you can send the file yourself, PUT it there instead (curl --fail -T interview.mp4 ''). A broken upload resumes: HEAD the url for Upload-Offset (the bytes received), then PUT the rest with Content-Range: bytes -/. Large files can go in parts the same way.

Input Schema

NameRequiredDescriptionDefault
nameYesThe file name with its extension, e.g. interview.mp4
bytesNoThe file size, to be refused now rather than part way if it is too big

Output Schema

NameRequiredDescriptionDefault
howYes
urlYesSigned: PUT the file here; no other credentials needed
max_bytesYes
upload_idYesUpload handle from media.upload
expires_atYes

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.