Skip to main content
Glama

Prepare a signed file upload

studio_media_upload_url
Idempotent

Creates an HTTPS POST upload capability bound to the user, project, role, exact file metadata and SHA-256, expiring in 15 minutes. Returns uploadUrl, uploadToken, method and expiresAt. The upload accepts raw bytes with the declared MIME Content-Type; attachment status is confirmed separately. No file bytes pass through MCP and no generation credits are spent.

Input Schema

NameRequiredDescriptionDefault
nameYesFile name, not a local path.
sizeYes
purposeYesThe customer file role; this never selects a paid generation.
mimeTypeYesThe file MIME type.
projectIdYesThe project receiving the file. Required for song, Artist DNA (artist is derived from the project) and reference attachment; no project is selected implicitly.
contentHashYesSHA-256 of the exact file bytes. The signed capability binds these bytes and cannot attach another file.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: a 15-minute expiry, byte-level binding via SHA-256 so a different file cannot be attached, the fact that raw bytes are POSTed with the declared MIME type, and that credits are not consumed. These are exactly the operational traits an agent needs before invoking an upload-preparation tool.

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?

Three dense sentences, front-loaded with the capability and its scope, followed by return values and the operational caveats. No filler, and each sentence carries distinct 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?

For a six-parameter, all-required tool with an output schema, the description covers the creation semantics, expiry, byte binding, and the handoff to confirmation. Nothing an agent needs in order to call 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 83%, so the baseline is 3. The description reinforces the binding semantics of contentHash and the role of purpose without contradicting or extending much beyond the schema's own wording (the enum is already explained as never selecting a paid generation).

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 precise verb and resource: creates a signed HTTPS POST upload capability bound to user, project, role, file metadata and SHA-256. It also distinguishes itself from the post-upload step by noting 'attachment status is confirmed separately', which points an agent at studio_media_confirm rather than confusing the two.

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

Usage Guidelines4/5

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

Gives clear situational context: no file bytes traverse MCP, no generation credits are spent, and confirmation is a separate step. It does not explicitly name when to prefer this over studio_media_upload_widget or studio_media_import_url, so the alternative-choice guidance is implied rather than stated.

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