Skip to main content
Glama

Create upload URL

create_upload

Get a presigned PUT URL to upload an image, video or audio file directly, plus the public URL it will have. Upload the bytes with HTTP PUT to uploadUrl (same Content-Type), then pass publicUrl to a generation call or the returned key as an r2Key (transcribe_media, create_voice_clone samples, voice_enhance). Prefer import_asset_from_url when you already have a URL.

Input Schema

NameRequiredDescriptionDefault
filenameYes
contentTypeYesMIME type, e.g. image/png, video/mp4 or audio/mpeg

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / contentType / description
      Previous value: -"MIME type, e.g. image/png or video/mp4"New value: +"MIME type, e.g. image/png, video/mp4 or audio/mpeg"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly=false, destructive=false). The description adds the essential workflow context they lack: a two-step process, that bytes must be PUT with a matching Content-Type, and that the returned key can serve as an r2Key. This is real behavioral disclosure beyond structured fields.

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?

Two dense sentences with zero waste, front-loading what the tool returns before the mechanics and the alternative. Every clause carries actionable information.

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?

With no output schema, the description takes on return-value disclosure and does it well (uploadUrl, publicUrl, returned key), and it closes the loop on where the result goes. Nothing an agent needs to invoke it correctly is missing.

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 coverage is 50%: contentType is documented and filename is not. The description reinforces the Content-Type matching requirement but adds nothing about filename beyond the schema's length constraints, so the baseline 3 for schema-carried semantics 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?

States a specific action (get a presigned PUT URL) and resource (upload target for image/video/audio), plus what is returned (uploadUrl and publicUrl). It is clearly distinguishable from the closest sibling, import_asset_from_url, which is explicitly named.

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 and when-not-to-use: 'Prefer import_asset_from_url when you already have a URL.' It also routes the output to named downstream consumers (transcribe_media, create_voice_clone samples, voice_enhance), giving the agent the full context for choosing this tool.

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