Skip to main content
Glama

Create download codes

studio_codes_create

Create free download codes for one of the person's releases (published or scheduled), e.g. for cards at a concert or for the press. Each code unlocks the whole release or one track once, forever, in all formats, like a purchase at 0 EUR (no money, no fee, counts as given away). Returns the codes with their redeem links. Optional label only the artist sees and an expiry date. Limit per release. The codes are only created after the person confirms count and release in the browser (you get a confirmUrl to give them), afterwards studio_request_status returns them.

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

Input Schema

NameRequiredDescriptionDefault
countNoNumber of codes, default 1
labelNoShort label only the artist sees, e.g. "Concert Vienna"
trackNoTrack ID if the codes should unlock only this track, leave out for the whole release
releaseYesRelease ID or URL
expiresOnNoLast valid day (YYYY-MM-DD, Vienna time), leave out for no expiry

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as a non-readonly, non-destructive, non-idempotent write; the description goes well beyond that by explaining exactly what a code grants (whole release or one track, one redemption, forever, all formats), that it is economically a 0 EUR purchase counting as given away, and that codes are only minted after browser confirmation. The two-step confirmUrl flow with studio_request_status as the retrieval path is disclosed, which is precisely the kind of non-obvious behavior an agent would otherwise miss.

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?

Purpose is front-loaded and the subsequent sentences follow a logical order: what a code is, what is returned, optional fields, limit, then the confirmation flow. A few parenthetical fragments ("no money, no fee, counts as given away") and the bare "Limit per release." sentence are slightly loose but each carries real 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?

There is no output schema, and the description covers the return value (codes with redeem links) and the fact that codes are not created immediately but after a confirmUrl hand-off, with studio_request_status as the follow-up. For a write tool with an asynchronous confirmation step, nothing an agent needs to call and follow through is missing.

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; the description still adds value by framing count as a per-release limit, label as artist-only visibility, and expiry as an optional end date, and by restating that omitting track yields whole-release codes. It does not give format or ID-syntax hints for release/track, so it stays below 5.

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?

Opens with a specific verb-plus-resource ("Create free download codes for one of the person's releases") and scopes it to published or scheduled releases. That distinguishes it clearly from studio_codes_list and studio_code_revoke, which operate on existing codes, without needing to open any schema.

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 concrete motivating scenarios (cards at a concert, press) and states the prerequisite that the release be published or scheduled, plus a per-release limit. It does not explicitly name a when-not case or contrast with studio_free_access_create, so it stops short of a 5.

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