Book cover size calculator
calculate_cover_sizeUse this when an author asks how big their full wraparound paperback or hardcover cover file must be for KDP, IngramSpark or Lulu. Takes the trim size, interior page count, binding and paper; returns the total width and height including bleed and spine, the back/spine/front breakdown, the barcode area and a link to check it on pdfdocpreflight.com.
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": {
"platform": "<platform>",
"trim_size": "<trim_size>",
"page_count": "<page_count>"
},
"name": "calculate_cover_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper | No | Interior paper and ink. KDP: 'bw-white' (Black ink, white paper), 'bw-cream' (Black ink, cream paper), 'bw-groundwood' (Black ink, groundwood paper), 'standard-color' (Standard color ink, white paper), 'premium-color' (Premium color ink, white paper). IngramSpark: 'groundwood-38-bw' (38# Groundwood, B&W), 'groundwood-40-bw-uk' (40# Groundwood, B&W (UK)), 'creme-50-bw' (50# Crème, B&W), 'white-50' (50# White, B&W or Color), 'white-70' (70# White, B&W / Color / Premium / Ultra Premium Color). Lulu: leave out (its spine width does not depend on paper). If you leave it out for KDP or IngramSpark, the result lists every paper so you can compare. | |
| binding | No | Binding. 'paperback' (default). KDP hardcover: 'hardcover' (KDP only offers case laminate). Lulu and IngramSpark: 'hardcover-casewrap' (printed case) or 'hardcover-jacket' (cloth case with dust jacket). | paperback |
| platform | Yes | Print platform: 'kdp' (Amazon KDP), 'ingramspark' or 'lulu'. | |
| trim_size | Yes | Finished book size, width × height, e.g. '6x9', '5.5 x 8.5 in', '152 x 229 mm', or a trim id from get_platform_specs (e.g. Lulu 'us-trade'). Width first. | |
| page_count | Yes | Interior page count: every page of the interior PDF, including blank and front-matter pages (not sheets or leaves). |