Skip to main content
Glama

Check credits

get_credits
Read-onlyIdempotent

Return the account owner's credit balance for the designer's AI tools; reading it spends nothing. Check it before generate_custom_print so you can tell the human the cost (1 credit per generation with either engine; preserve=true is free) and what will be left. No credits account yet → balance 0; the first generation opens it with 20 credits as a welcome bonus. Every bought tee adds 20 credits; credits are not sold.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
noteNo
errorNo
rulesNoHow credits are earned: signup_bonus, trial_bonus, order_reward_per_tee, order_reward_max_tees, trial_cooldown_days.
detailNo
recentNoLatest balance changes, newest first (up to 10).
balanceNoCurrent credit balance.
studio_accountNoFalse if the user has no credits account yet (the first generation opens one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false, idempotentHint=true), so the bar is lower, yet the description still adds real behavior: reads spend nothing, cost is 1 credit per generation, preserve=true is free, and an unopened account returns 0 then opens with 20 credits. It stops short of describing response shape or pagination, but the output schema covers return values.

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 tight sentences, front-loaded with what it returns and that reading is free, then the call-ordering advice, then the balance mechanics. Every clause earns its place by answering a question the agent would otherwise have to guess at.

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 zero-parameter read with an output schema and full annotation coverage, the description supplies everything an agent needs: when to call, that it is free, cost per generation, and why a balance might be 0 or unexpectedly large. No gaps that would cause a mis-call.

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?

The tool takes no parameters, so the baseline is 4 and there is nothing for the description to clarify beyond the implicit scope of 'the account owner's balance'. It correctly signals there is no user or account selector to pass.

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: returns the account owner's credit balance for the designer's AI tools. No sibling exposes credits, and the phrase 'reading it spends nothing' immediately disambiguates it from the generation tool that consumes credits.

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

Usage Guidelines5/5

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

Explicitly says to check it before generate_custom_print and why (to tell the human the cost and remaining balance), which is direct when-to-use guidance tied to a named sibling. The only minor gap is the absence of an explicit 'do not call when' clause, but the sequencing instruction covers the relevant decision.

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