Skip to main content
Glama

Get an upload URL for a track or cover

studio_upload_prepare

Returns a short-lived signed upload URL for one file of a draft release: the audio of one track (kind track: lossless FLAC, WAV or AIFF, 16 or 24 bit, same formats and checks as the studio upload, large WAVs are fine) or the cover (kind cover: JPEG, PNG or WebP, square, at least 1400 px, at most 20 MB). Upload the file as the raw request body with HTTP PUT (POST works too), no Authorization header, e.g. curl --fail -T "song.wav" "". The URL works for one file within 60 minutes. Then call studio_upload_finish with the upload ID to attach it. Tracks count towards the person's storage; the answer says how many bytes fit. The URL is private, never show it publicly.

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": {
      "release": "<release>",
      "kind": "<kind>",
      "filename": "<filename>"
    },
    "name": "studio_upload_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYestrack (audio of one track) or cover (release cover image)
bytesNoFile size in bytes, to check early that it fits
releaseYesRelease ID or URL
filenameYesFile name, e.g. "01 Intro.wav"; the track title is taken from it unless studio_upload_finish gets a title

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the traits that matter: the URL is short-lived (60 minutes) and limited to one file, it is private and must not be shown publicly, it requires no auth header, and the track upload counts against the person's storage. That is exactly the operational and safety context the readOnlyHint=false / non-idempotent annotations cannot convey.

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?

It is a single dense paragraph, but the most important fact (a signed URL for one file) comes first and every later clause carries information, including the practical curl example. Minor tightening is possible: the parenthetical 'same formats and checks as the studio upload' is redundant with what follows.

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?

With no output schema, the description partially compensates by mentioning that the response includes an upload ID and says how many bytes fit. It does not name the field that holds the URL itself, but for a one-shot upload-ticket tool, the workflow and constraints are complete enough to act on.

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 schema already documents all four parameters. The description still adds real meaning by spelling out the accepted formats per kind (FLAC/WAV/AIFF 16- or 24-bit for track; JPEG/PNG/WebP, square, at least 1400 px, at most 20 MB for cover) and by confirming the filename becomes the track title unless finish overrides it.

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?

The description opens with a specific verb and resource: 'Returns a short-lived signed upload URL for one file of a draft release,' and then splits the two modes (track audio vs. cover image) with their format constraints. It is immediately distinguishable from studio_upload_finish, which is named as the follow-up step rather than being duplicated.

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?

It clearly states the workflow context (one file per URL, then call studio_upload_finish with the upload ID) and the transport details for using the URL (PUT raw body, POST also works, no Authorization header). What is missing is explicit guidance on when not to use this tool, e.g. when a direct upload path exists, or how to choose between track and cover beyond the format listing.

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