Skip to main content
Glama

Redeem Credit Code

redeem_code

Redeem a credit code (CR-XXXX-XXXX-XXXX-XXXX) for the key owner. A code is worth days of Premium, added after any term already held. Needs a key.

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 credit code, any case, dashes optional, e.g. CR-AB12-CD34-EF56-GH78

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive mutation, so the bar is lower. The description still adds meaningful behavior: the value is days of Premium, and it stacks after any term already held rather than replacing it. It does not say what happens on an invalid or previously used code, so it falls short of a 5.

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 short sentences with zero waste; the action, the value, and the prerequisite are all front-loaded. Nothing is repeated or padded.

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?

For a one-parameter mutation tool with full annotation coverage and no output schema, the description covers the effect, the stacking semantics, and the auth prerequisite. The remaining gap is failure behavior (invalid or already-redeemed code) and whether anything is returned on success.

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 100% and the single parameter is fully described, including case-insensitivity and optional dashes. The description's "(CR-XXXX-XXXX-XXXX-XXXX)" restates the schema's example rather than adding new meaning, so baseline 3 applies.

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?

"Redeem a credit code ... for the key owner" names a specific verb and resource, plus the format of the identifier, so the operation is unambiguous. No sibling tool in the catalog does anything similar, so there is no ambiguity to resolve.

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

Usage Guidelines3/5

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

The prerequisite "Needs a key" tells the agent an authenticated key owner is required before calling, which is real usage context. However, there is no explicit when-to-use/when-not-to-use framing and no mention of what to do with an invalid or already-redeemed code.

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