Skip to main content
Glama

Redeem Credit Code

redeem_credit_code

Redeem a pwamart credit code (PM-XXXX-XXXX-XXXX-XXXX) for days of the Pro plan, added after any time the account already has. Each code works once per account. Needs an API key or pwamart login.

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_credit_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say it is a non-read-only, non-destructive, closed-world mutation. The description adds real context beyond that: the credit is additive and stacks after existing subscription time, redemption is once-per-account, and authentication is mandatory. It leaves out failure behavior (invalid or already-redeemed code) and any rate limits.

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?

Three short sentences, front-loaded with what the tool does and the credit format, followed by the two constraints that affect success. No filler or repetition of the title.

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 with no output schema, the description covers action, effect on the account, idempotency limit, and auth. The main omission is the return value (e.g., days granted or new expiry) and error semantics, which an agent would otherwise have to discover by calling.

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 0% and the sole `code` parameter carries no description, so the description must compensate — it does by giving the exact expected format (PM-XXXX-XXXX-XXXX-XXXX). It stops short of noting case sensitivity or whitespace handling, so it is good but not exhaustive.

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 (Redeem) and resource (pwamart credit code) plus the concrete outcome: days of the Pro plan appended after any existing subscription time. No sibling tool performs redemption, so its function is unambiguous at a glance.

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 the key operating conditions: each code works once per account and an API key or `pwamart login` is required. It doesn't spell out preconditions such as code expiry or what to do on a rejected code, but for a single-purpose tool with no sibling alternative, the 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