Skip to main content
Glama

vibedgames

Redeem a credit code

credits_redeem
Idempotent

Redeems a credit code for the caller, adding its value to their balance. Each account can redeem a given code once. 403 when the code is unknown, expired, revoked or used up; 409 when this account already redeemed it; 412 until the account's email address is confirmed.

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": "credits_redeem"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe credit code to redeem, as you were given it, e.g. `ABC123`; case and surrounding spaces don't matter

Output Schema

NameRequiredDescriptionDefault
balanceMicroYes
creditedMicroYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (which only declare write/not-destructive/idempotent/openWorld=false), the description discloses the side effect (value added to balance) and a precise failure taxonomy: 403 for unknown/expired/revoked/used-up, 409 for duplicate redemption, 412 for unconfirmed email. That is exactly the contextual layer annotations cannot carry. It stops short of describing the success payload or whether partial value from an expired code is handled, so not a full 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 sentences: the first front-loads purpose and effect, the second compresses the eligibility limit, preconditions and status-code contract with no filler. Every clause carries information an agent would otherwise have to discover at runtime.

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 single-parameter, non-destructive mutation with an output schema and full annotations, the description covers purpose, side effect, eligibility rules and error conditions. Success return values are left to the output schema, which is the correct division of labor.

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?

There is a single parameter and the schema already documents it completely (format, length bounds, case/whitespace insensitivity, example). The description adds no further meaning about the code parameter, so the 100%-coverage baseline of 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?

The description gives a specific verb and resource ('Redeems a credit code') plus the outcome ('adding its value to their balance'), which cleanly separates it from credits (balance viewing) and credits_buy (purchasing credits) in the sibling list. An agent can decide between these 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 Guidelines3/5

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

It states preconditions (one redemption per account, email must be confirmed) and failure conditions, which implicitly tells the agent when a call will not work. However, it never says when to prefer this tool over adjacent ones or how to obtain a valid code, so usage guidance is implied rather than explicit.

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.