Skip to main content
Glama

Declare an upload

request_upload

Step one of putting a file in: declare it and get upload URLs back (videos also get one for their cover frame). PUT the bytes, then call confirm_upload. Leave out trip_id when you do not know where it belongs yet — it waits in a pool. See learn('recipes/upload').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesimage or video; photo is a legacy alias for image.
trip_idNoOptional. Without it the file waits in the unclaimed pool.
size_bytesYesSize of the original file in bytes.
content_hashYesSHA-256 of the original bytes, lowercase hex. Used to skip re-uploading. (must not be empty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / kind / description
      Added value: +"image or video; photo is a legacy alias for image."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "image",
      -  "video"
      -]New value: +[
      +  "image",
      +  "video",
      +  "photo"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources