Skip to main content
Glama

Redeem a code

redeem_code

Redeem a Bitsound code for the signed-in person: a download code from an artist (BSND-XXXX-XXXX, puts a release or track into the collection) or a gift code (GIFT-XXXX-XXXX-XXXX: music given as a gift, a free promo voucher from Bitsound, or a gift card bought earlier). A redeem link (https://bitsound.com/redeem?code=...) works too. Every code works once. Rate limited.

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": {
      "code": "<code>"
    },
    "name": "redeem_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe code or the redeem link

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive mutation, and the description adds two traits annotations cannot express: each code is single-use and the endpoint is rate limited. It stops short of describing what happens on an invalid, expired, or already-redeemed code, which would matter for error handling.

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 action and the actor, and every clause carries information (code families, formats, link form, one-time use, rate limit). The nested parentheses make it denser than ideal to parse, but nothing is filler.

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 one required parameter, no output schema, and annotations covering the safety profile, the description supplies the outcome (a release or track lands in the collection) plus the one-time and rate-limit constraints. The remaining gap is failure behavior for bad or used codes.

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 earns more by giving concrete code shapes (BSND-XXXX-XXXX vs GIFT-XXXX-XXXX-XXXX) and confirming a full redeem link is accepted — details the schema only gestures at with "The code or the redeem link".

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 verb and resource ("Redeem a Bitsound code") and immediately scopes it to the signed-in person, then enumerates the two code families with format prefixes. An agent can distinguish this from studio_codes_create (issuing codes) and studio_code_revoke without opening 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?

Explains the situations that lead here — an artist download code or a gift/promo/gift-card code — and notes a redeem URL is an acceptable input. It does not explicitly name a sibling alternative or state when not to call it, but for a single-purpose redemption tool the positive guidance is clear.

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