Get credits and book cost
get_creditsRead 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
| Name | Required | Description | Default |
|---|---|---|---|
| bookType | No | Optional book type to price. An activity book is workbook. | |
| inkByType | No | workbook only: each activity's ink, "black_and_white" or "color". Premium upgrades hidden-pictures and spot-the-difference pages only in black and white. | |
| activities | No | workbook only: the activities as they will be ordered, so Premium is priced on the coloring pages. | |
| highQuality | No | Price 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. | |
| pagesByType | No | workbook only: pages of each activity, as they will be ordered. | |
| numberOfPages | No | Optional page count to price. | |
| hasReferenceImage | No | No longer affects the price — uploaded characters cost nothing extra. Accepted for older clients. |