Calculate KDP wrap dimensions
calculate_kdp_wrapCalculate a KDP print wrap's size (back, spine, front, bleed) in inches and pixels at 300 DPI, the spine width, whether the spine can hold text, and the barcode zone. Free, no book needed. It applies create_full_wrap's rules.
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": {
"trim_width": "<trim_width>",
"trim_height": "<trim_height>",
"page_count": "<page_count>"
},
"name": "calculate_kdp_wrap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_count | Yes | Interior page count (paperback 24-830, hardcover 76-550). | |
| paper_type | No | KDP paper type (default white). | |
| trim_width | Yes | Trim width in inches (e.g. 6). Must be a KDP trim size — paperback: 5x8, 5.06x7.81, 5.25x8, 5.5x8.5, 6x9, 6.14x9.21, 6.69x9.61, 7x10, 7.44x9.69, 7.5x9.25, 8x10, 8.25x6, 8.25x8.25, 8.27x11.69, 8.5x8.5, 8.5x11; hardcover: 5.5x8.5, 6x9, 6.14x9.21, 7x10, 8.25x11. Any other size returns invalid_trim_size. | |
| trim_height | Yes | Trim height in inches (e.g. 9). | |
| binding_type | No | Binding (default paperback). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | Yes | ||
| wrap | Yes | Hardcover wrap allowance in inches; null for paperback. | |
| bleed | Yes | Inches per outer edge. | |
| hinge | Yes | Hardcover hinge in inches; null for paperback. | |
| provider | Yes | ||
| fullWidth | Yes | Full cover width in inches, bleed included. | |
| pageCount | Yes | ||
| paperType | Yes | ||
| trimWidth | Yes | Inches. | |
| fullHeight | Yes | Full cover height in inches, bleed included. | |
| pixelWidth | Yes | Full cover width in pixels at dpi. | |
| spineWidth | Yes | Inches. | |
| trimHeight | Yes | Inches. | |
| barcodeZone | Yes | ||
| bindingType | Yes | ||
| pixelHeight | Yes | ||
| safeTextMargin | Yes | Inches inside the trim. | |
| canHaveSpineText | Yes |