Skip to main content
Glama

Get upload URL

get_upload_url

Create a presigned URL for uploading a local file with an HTTP PUT: an image, video, audio file, 3D model, font, ZIP archive (type zip) or render project ZIP (type project, for render_html_video and generate_html_video project_asset_id). Use it when the client can read the local file and make the PUT itself; publicly downloadable URLs should use upload_asset instead. The PUT must send exactly the returned headers (Content-Type, and Content-Length when bytes was given). Wait for the PUT to return 2xx before confirm_upload, which makes the asset usable; issuing the URL uploads nothing. The URL is valid for 15 minutes; unconfirmed uploads are discarded after 24 hours. Limits: images 30 MB, audio 200 MB, video 500 MB, 3D models 200 MB, fonts 20 MB, ZIPs and projects 1 GiB.

For voice cloning, purpose "voice_clone" is required and type must be "audio" (at most 100 MB). This creates a private recording and returns an asset ID for clone_voice, never a public audio URL.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "content_type": "<content_type>",
      "type": "<type>"
    },
    "name": "get_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoAsset name.
tagsNoTags for organizing the asset.
typeYesAsset type; must match content_type. zip is an ordinary ZIP asset; project is a render_html_video project ZIP, kept private and reused by asset ID.
bytesNoExact file size in bytes, when known; it is then part of the signed upload. confirm_upload checks the size limit either way.
purposeNoUse voice_clone for a private voice recording; returns an asset ID for clone_voice, never a public audio URL.
filenameNoOriginal file name: picks the type when the browser reports a generic content_type (e.g. application/octet-stream for woff2), and is the name when name is omitted.
descriptionNoAccepted for compatibility; not stored.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
content_typeYesMIME type, e.g. image/png, video/mp4, audio/mpeg, font/woff2, application/zip. With a generic type (application/octet-stream) the filename extension decides.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare the generic non-destructive write profile, so the description carries most of the burden and does so well: it says issuing the URL uploads nothing, the 15-minute URL lifetime, 24-hour discard of unconfirmed uploads, exact header requirements, and per-type size caps. The one gap is that it never says what the response body looks like beyond 'the returned headers', which an agent must handle blindly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the when-to-use split before the operational detail, and nearly every sentence carries constraint information. It runs long and repeats the voice_clone/purpose point that the schema already states, which is the only waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter mutation-with-follow-up tool it covers the full lifecycle: preconditions, exact PUT requirements, the mandatory confirm_upload step, expiry and cleanup windows, and per-type limits. With no output schema, it still tells the agent what comes back (a URL plus headers, or an asset ID for voice_clone).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it ties bytes to Content-Length in the signed PUT, explains the generic-content-type/filename fallback, and clarifies that purpose 'voice_clone' yields a private recording asset ID rather than a public URL. It does not re-explain name, tags, or description, which is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Create a presigned URL for uploading a local file') and enumerates exactly what asset kinds the URL covers, then explicitly separates itself from upload_asset. An agent can distinguish this from every sibling without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the selecting condition positively ('Use it when the client can read the local file and make the PUT itself') and names the alternative with its own condition ('publicly downloadable URLs should use upload_asset instead'). It also specifies the required sequencing with confirm_upload, so the workflow order is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.