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' -H 'x-goog-if-generation-match: 0' '<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: storage refuses a second file there (HTTP 412). The file is deleted at url_expires_at.

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>"
    },
    "name": "create_upload"
  }
}

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.8/5.0
Behavior5/5

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

Annotations only cover safety flags, and the description goes well beyond them: the required PUT flow with exact headers, the expiry timestamps, one-file-per-upload, storage refusing a second PUT with HTTP 412, and deletion at url_expires_at. These are non-obvious failure modes an agent would otherwise hit.

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 purpose and limits, then the mechanics, then the downstream usage. It is a long single paragraph, but nearly every clause carries operational information; the one embedded curl example is justified because the header set is mandatory.

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?

One-parameter tool with no output schema, and the description covers everything needed to call it correctly: how to PUT, what to send, what the returned fields mean, when the url expires, and what to do on failure. Nothing material is left implicit.

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% for the single content_type parameter, so the baseline is 3; the description adds value by mapping media categories (image/video/audio) to the tool's purpose and showing the Content-Type header in the curl example. It does not restate the enumerated MIME list, which the schema already handles.

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?

States a specific verb and resource — 'Get a signed URL to upload a local file' — and immediately scopes it by size (>3 MB, up to 100 MB) and media type. It also distinguishes this from chat attachments, which is a real source of confusion for an agent.

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?

Explicit when-to-use ('only for a file on a machine where you can run commands'), explicit when-not ('this server cannot read files attached to the chat'), and it names the downstream tools that consume the resulting url (generate, create_character, create_reference, estimate_cost).

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