publishing_print_royalty
Print cost and royalty calculator
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pages": "<pages>",
"fixedCharge": "<fixedCharge>",
"perPageCharge": "<perPageCharge>",
"method": "<method>",
"percent": "<percent>",
"listPrice": "<listPrice>"
},
"name": "publishing_print_royalty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Page count, 1 to 2000. | |
| method | Yes | rate: you earn percent of the list price. wholesale: percent is the discount given to retailers and you earn the rest. | |
| percent | Yes | The royalty rate (method rate) or the retailer discount (method wholesale), 0 to 100. | |
| listPrice | Yes | The list (cover) price per copy, 0 to 1,000,000; above that is a 400. At 0 nothing is earned, so the royalty is the printing cost as a loss. | |
| fixedCharge | Yes | Fixed printing charge per copy, in your currency (0 to 1,000,000). | |
| upfrontCost | No | One-off cost (editing, cover, ISBN), 0 to 1,000,000. When given, copiesToRecoverUpfront is how many copies earn it back (at least 1 when the cost is above 0); null when each copy earns nothing. targetRoyalty and upfrontCost may be null, which means not sent. | |
| perPageCharge | Yes | Printing charge per page, in the same currency (0 to 1,000,000). Printing cost per copy = fixedCharge + perPageCharge x pages and must also be at most 1,000,000. | |
| targetRoyalty | No | The royalty per copy you want to earn, 0 to 1,000,000. When given, priceForTargetRoyalty is the lowest list price (to the cent) that earns it; null when the royalty share is 0. |