Skip to main content
Glama

Redeem a credit code

redeem_credit_code

Redeem a ThreatCrush credit code (CR-XXXX-XXXX-XXXX-XXXX) into the signed-in account's credit balance (1 credit = $1.00). Needs the account's session token (threatcrush login), not a tc_agent_ key: agent keys belong to a team, not a person.

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
codeYesThe credit code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only behavior, so the description's job is to add context, and it does: an authentication requirement distinct from agent keys, the mutation target (the account's credit balance), and the credit-to-dollar conversion. It does not say what happens when a code is invalid, already redeemed, or expired, which matters given idempotentHint=false.

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 tight sentences with the core action and its balance effect front-loaded, followed by the auth caveat. Every clause carries information an agent needs; nothing is repeated from the schema or annotations.

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 tool with annotations covering the safety profile, the description supplies the essentials: what gets credited, how the value is denominated, and which credential is required. The remaining gap is failure-mode behavior (duplicate or invalid codes), which is not covered here or by an output schema.

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?

The single parameter already has a schema description at 100% coverage, so the schema carries most of the load. The description adds real value by specifying the code's shape (CR-XXXX-XXXX-XXXX-XXXX), but does not discuss case sensitivity, whitespace, or error behavior for malformed codes.

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 credit code) plus the exact effect: it lands in the signed-in account's credit balance with a stated conversion of 1 credit = $1.00. The code format (CR-XXXX-XXXX-XXXX-XXXX) further pins down what kind of object is being acted on, so an agent can tell this apart from every listed sibling.

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 a clear precondition for use: it must be called with the account's session token (threatcrush login) and explicitly not a tc_agent_ key, because agent keys belong to a team rather than a person. That exclusion prevents a likely mis-invocation, but there is no guidance on when to prefer this over any alternative flow or what to do if the caller only has an agent key.

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