Skip to main content
Glama

Create an upload link

create_upload_link

Get a one-time address to send a local file to, for an agent that can run a shell. PUT the file's bytes to upload_url (the answer includes a curl command), then call compress_images with the upload_id. The link expires after a few minutes and works once; the uploaded file keeps for about a day. Ask for one link per file. Uploads not yet compressed never outnumber the images the plan can still compress today (a fixed number of them on a plan without a daily cap): past that, a new link is refused with uploads_waiting, naming the upload ids already sent: compress those, then ask again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_nameYesThe file's name, like "hero.png". It names the image; the extension is corrected to what the bytes turn out to be.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
curlNoA command that sends the file.
nextNo
methodNo
upload_idNoThe id to pass to compress_images in upload_ids once the file is sent.
expires_atNo
upload_urlNo
max_file_sizeNoBytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "curl": {
      +      "description": "A command that sends the file.",
      +      "type": "string"
      +    },
      +    "expires_at": {
      +      "type": "string"
      +    },
      +    "max_file_size": {
      +      "description": "Bytes.",
      +      "type": "integer"
      +    },
      +    "method": {
      +      "enum": [
      +        "PUT"
      +      ],
      +      "type": "string"
      +    },
      +    "next": {
      +      "type": "string"
      +    },
      +    "upload_id": {
      +      "description": "The id to pass to compress_images in upload_ids once the file is sent.",
      +      "type": "string"
      +    },
      +    "upload_url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  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