Skip to main content
Glama

Create upload

create_upload

Get a signed URL to upload a local file too large for a data URL (over about 3 MB): an image, a video, or an audio clip, up to 100 MB. Only for a file on a machine where you can run commands: this server cannot read files attached to the chat. PUT the file to upload_url before upload_url_expires_at with exactly the returned headers, for example curl -X PUT -T clip.mp4 -H 'Content-Type: video/mp4' -H 'x-goog-content-length-range: 0,104857600' '<upload_url>'. Then pass url as a media input to generate (a first frame, reference images, or a source video) or as the image or audio of create_character or create_reference; estimate_cost measures a video at url to price it. Each upload holds one file: for a new or corrected file, call create_upload again, never PUT to an earlier upload_url, because the CDN keeps serving the first file at url for up to 4 hours. The file is deleted at url_expires_at.

Input Schema

NameRequiredDescriptionDefault
content_typeYesThe file's media type: one of image/jpeg, image/png, video/mp4, video/quicktime, video/webm, audio/mpeg, audio/mp3, audio/wav, audio/wave, audio/x-wav.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With annotations already covering safety (readOnlyHint=false, destructiveHint=false), the description adds crucial operational semantics beyond them: a signed-URL handshake, exact PUT requirements with headers, URL/file expiry, one-file-per-upload immutability, CDN caching for up to 4 hours, and the rule never to reuse an earlier upload_url. These are non-obvious behaviors an agent could easily get wrong.

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

Conciseness5/5

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

Front-loads purpose and size threshold, then the operational workflow, then consumption targets. Although long, every sentence carries distinct operational value—expiry, immutability, header requirements—and the curl example is a compact concrete instruction rather than filler.

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?

No output schema is provided, and the description explains the relevant returned fields (upload_url, headers, upload_url_expires_at, url, url_expires_at) and how they behave. Combined with the PUT workflow and consumer tools, an agent has everything needed to call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the content_type enumeration and meaning are fully documented by the schema. The description adds only indirect context via the curl example showing a matching Content-Type header. That is marginal beyond the schema, so the baseline 3 applies.

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?

Starts with a specific verb and resource: 'Get a signed URL to upload a local file'. Immediately qualifies scope (too large for a data URL, over ~3 MB, up to 100 MB) and the file kinds supported. An agent can tell this apart from generate, create_character, and create_reference, which consume the result rather than create uploads.

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?

Explicitly states the precondition ('Only for a file on a machine where you can run commands: this server cannot read files attached to the chat') and the size-based reason to choose this over a data URL. It names the downstream tools that consume the returned URL (generate, create_character, create_reference, estimate_cost), giving clear routing guidance.

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.

Resources