Skip to main content
Glama

Get credits and book cost

get_credits
Read-only

Read the account's available credits. If bookType and numberOfPages are provided, also calculate the credit cost and whether the account can afford the order.

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
bookTypeNoOptional book type to price. An activity book is workbook.
inkByTypeNoworkbook only: each activity's ink, "black_and_white" or "color". Premium upgrades hidden-pictures and spot-the-difference pages only in black and white.
activitiesNoworkbook only: the activities as they will be ordered, so Premium is priced on the coloring pages.
highQualityNoPrice the order at the higher-quality tier: 2.5 credits a page for a coloring book, story coloring, educational coloring and illustrated story books. An activity book (workbook) charges 2 a page on its coloring pages and its black-and-white hidden-pictures and spot-the-difference pages, and 1 on every other page, so send its activities (and pagesByType) to price it.
pagesByTypeNoworkbook only: pages of each activity, as they will be ordered.
numberOfPagesNoOptional page count to price.
hasReferenceImageNoNo longer affects the price — uploaded characters cost nothing extra. Accepted for older clients.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds non-obvious behavior beyond that: the tool silently switches into a pricing/affordability computation depending on which optional parameters are present, and it explicitly notes hasReferenceImage no longer affects price.

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, zero filler, and the primary read behavior is front-loaded ahead of the conditional pricing mode. Nothing repeats the parameter names unnecessarily or pads the definition.

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?

With seven parameters, nested objects and no output schema, the description does well to say what the pricing mode returns conceptually (a cost and an affordability verdict). It stops short of indicating the response shape or units for the credit balance, which an agent must discover at call time.

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?

Schema coverage is 100%, so the enum values, workbook-only fields and page limits are already documented in the schema. The description adds one genuinely new semantic — that bookType and numberOfPages must both be present to trigger pricing — but leaves the highQuality/workbook interaction and inkByType entirely to the schema. Baseline 3 is appropriate.

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 names a specific verb and resource ("Read the account's available credits") and adds a second, clearly bounded mode (pricing when bookType and numberOfPages are supplied). That dual-mode framing makes it unmistakable against the create_* siblings, which all produce artifacts rather than report balances.

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 the condition that activates pricing (both bookType and numberOfPages provided), which is real usage guidance. But it never says when an agent should reach for this tool — e.g. to pre-check affordability before calling create_coloring_book — and names no alternatives or exclusions.

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