Skip to main content
Glama

issue_credits

Issue (add) credits to a user; creates the user if they don't exist (email-first lookup). Pass idempotency_key on anything an agent might retry: a replay returns the original transaction with idempotent_replay: true and issues nothing more (no second webhook or mint). Without a key, every call issues again. For on-chain credit types with mint_on_issue, the response includes on_chain mint status. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.

Input Schema

NameRequiredDescriptionDefault
amountYesCredits to issue (positive)
reasonNoReason, shown in the ledger
api_keyNoCred API key (optional if set via the x-api-key header)
user_idYesExternal user ID
user_nameNoDisplay name for a new user
project_idNoCred project ID (optional; the API key already identifies the project)
signup_urlNoApp/page URL a new user signed up from (first-touch attribution)
user_emailNoUser email (matched first, stored on a new user)
reference_idNoYour reference for tracking (not a dedupe key — use idempotency_key)
x402_paymentNoBase64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD
credit_type_idYesCredit type to issue
wallet_addressNoEVM address to mint this issuance to, overriding the one on file (on-chain types only)
idempotency_keyNoUnique key for this issuance (max 255 chars). Retrying with the same key and same arguments returns the first result instead of repeating it; reusing it for different arguments fails with 409 IDEMPOTENCY_KEY_REUSED. Generate a fresh key (e.g. a UUID) per intended operation and reuse it only to retry that operation.
signup_credit_type_idNoCredit type the user signed up for (attribution)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: auto-creates missing users, replay returns the original transaction with idempotent_replay: true and mints/sends no second webhook, on-chain mint status is reported, and a 1 CRD fee is charged even on rejection except 429. It also discloses that errors carry a request_id for support escalation.

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?

Four dense sentences, front-loaded with the core action and side effect, then idempotency, then on-chain/cost behavior, then error handling. No restated name or filler.

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 14-parameter mutation tool with no annotations and no output schema, the description covers the critical behaviors: creation side effects, dedupe semantics, billing cost, and the shape of response/error fields. An agent could call this correctly and safely without reading anything else.

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; the description goes further by tying idempotency_key to a concrete retry policy and by naming the replay flag and mint behavior the parameter triggers. It does not explain x402_payment or project_id redundancy, leaving some multi-param interactions to the schema.

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 (issue/add credits to a user) plus a non-obvious side effect (creates the user on email-first lookup). Against siblings like deduct_credits and refund_credits the direction of the credit movement is unambiguous.

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 explicit when-to guidance for idempotency_key ("anything an agent might retry") and warns that omitting it re-issues on every call. It stops short of routing the agent to alternatives such as deduct_credits for negative movements or explaining the x402_payment retry path, which only appears in the schema.

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