Skip to main content
Glama

Create upload URL

create_upload_url

Get a presigned upload URL for an image, video, or audio file, or supply an existing public URL, then use it in task inputs after completing the upload.

Instructions

Use an existing public URL, or get a presigned R2 PUT URL for one image/video/audio file. With fileName, PUT the raw bytes to uploadUrl using the returned Content-Type, then pass url in create_task inputs (for example imageUrls). Complete the upload with complete_upload before attaching the owned asset to a task. This call does not transfer the file itself.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoExisting public http(s) URL. Use this instead of fileName when you already host the asset.
fileNameNoOriginal file name; its extension determines the accepted type.
fileSizeNoBytes. Required for a ticket. Limits are 10 MiB for images, 50 MiB for videos, and 15 MiB for audio.
contentTypeNoMIME type, e.g. image/png.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark this as a non-read-only, non-idempotent, non-destructive call, and the description adds genuinely new behavior: it does not transfer bytes itself, the client must PUT raw bytes to the returned uploadUrl with the returned Content-Type, and a completion step is required. It does not mention presigned URL expiry or any auth/prerequisite requirements, which is the remaining gap.

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 two usage modes, then the workflow steps, then the scope disclaimer. Four dense sentences with little waste, though the mention of an example field (imageUrls) is slightly incidental.

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

Completeness4/5

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

No output schema exists, and the description compensates by naming the key returned values (uploadUrl, Content-Type) and the follow-up call. For a ticket-minting tool it is nearly complete, with presigned URL lifetime/expiry the main omission.

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 meaning beyond the schema by explaining the relationship between the parameters: url and fileName are mutually exclusive ingestion modes, and contentType must be reused as the header when PUTting to uploadUrl. It does not clarify interplay of fileSize with the ticket beyond what the schema already states.

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?

Names the specific resource (a presigned R2 PUT URL for one image/video/audio file) and the alternate mode (an existing public URL), and explicitly scopes itself away from file transfer and from complete_upload/create_task. An agent can distinguish this from its siblings without opening the 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?

Explicitly branches usage: pass url when you already host the asset, pass fileName to obtain a presigned PUT URL. It also gives the required ordering (complete_upload before attaching the owned asset to a task) and states the downstream handoff (pass url into create_task inputs).

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