Create a reprint checkout link
tinytales_create_reprint_checkout tinytales:write
Create a Polar checkout URL to reprint a book that already has a completed print order. Every page must still be rendered and the current preview must be approved with tinytales_approve_book_preview. The person pays in the browser. This tool does not charge a card, and no MCP tool can charge a card. The response includes the price breakdown and total for the quantity. Works without a curation profile: omitted quantity is 1 (one shared copy).
01Access
The signed-in customer must have approved tinytales:write. Calls stay inside that account.
02Annotations
The tool creates a pending checkout URL for another copy of an already-printed book.
No card is charged and no print job is created. The person completes payment in the browser.
This tool only reads or changes the signed-in TinyTales account. It does not post to the public internet or to other people’s services.
Repeating the call can create another record.
03Input
Book id returned by tinytales_list_books or tinytales_create_book.
Number of printed copies. When omitted, uses the curation profile defaultQuantity, or 1 if no profile is set. 1 means one shared copy.
Optional JSON shipping address to echo on the response. When omitted, uses the curation profile shipping address if one was saved. Polar still collects the paid address in the browser.
json returns structured data. markdown returns the same data as a short readable summary. Defaults to json.
04Output
True when the underlying TinyTales route accepted the call.
One-line result for the model to read.
Present when ok is false. Names the failed state and the next tool to call.
Polar URL where the person pays. Absent when ordering is closed.
Copy count used for this checkout link.
Shipping address echoed for display. Null when none was provided or saved. Polar still collects the paid address in the browser.
Price breakdown from the same Polar config checkout uses: unitPriceCents (promo when active), listPriceCents, additionalCopyPriceCents, promoActive, shippingIncluded, currency, quantity, and totalCents.
05Errors
- No completed print order exists for this book. Use tinytales_create_checkout for a first print.
- Ordering is not yet open. Use the Order button on the book page to join the waitlist.
- Book not found
- Checkout is blocked until every page is rendered
- Checkout is blocked until the person approves a full preview
06Example request
{
"book_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"quantity": 1
}
07Example response
{
"ok": true,
"summary": "Reprint checkout link is ready. The person pays in the browser. No card was charged.",
"checkout_url": "https://polar.sh/checkout/example",
"quantity": 1,
"shipping_address": null,
"pricing": {
"currency": "USD",
"shippingIncluded": true,
"promoActive": true,
"listPriceCents": 2500,
"unitPriceCents": 1500,
"additionalCopyPriceCents": 800,
"quantity": 1,
"totalCents": 1500
}
}