Skip to main content
Glama

Calculate KDP wrap dimensions

calculate_kdp_wrap
Read-onlyIdempotent

Calculate 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

NameRequiredDescriptionDefault
page_countYesInterior page count (paperback 24-830, hardcover 76-550).
paper_typeNoKDP paper type (default white).
trim_widthYesTrim 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_heightYesTrim height in inches (e.g. 9).
binding_typeNoBinding (default paperback).

Output Schema

NameRequiredDescriptionDefault
dpiYes
wrapYesHardcover wrap allowance in inches; null for paperback.
bleedYesInches per outer edge.
hingeYesHardcover hinge in inches; null for paperback.
providerYes
fullWidthYesFull cover width in inches, bleed included.
pageCountYes
paperTypeYes
trimWidthYesInches.
fullHeightYesFull cover height in inches, bleed included.
pixelWidthYesFull cover width in pixels at dpi.
spineWidthYesInches.
trimHeightYesInches.
barcodeZoneYes
bindingTypeYes
pixelHeightYes
safeTextMarginYesInches inside the trim.
canHaveSpineTextYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description's job is supplementary. It adds genuinely new behavioral context: the output units and 300 DPI basis, that the call is free and requires no existing book, and that its math mirrors create_full_wrap. It does not mention validation failure modes (e.g., invalid trim sizes) — though the schema covers that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, output scope front-loaded in the first, with the cost/independence caveat and the create_full_wrap consistency note following. No filler or restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deterministic, read-only calculator with a full output schema and 100% parameter coverage, the description supplies exactly what the structured fields cannot: units, DPI basis, cost, that no book context is required, and consistency with the sibling creator. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%: trim widths, page-count ranges per binding, paper types and defaults are all documented in the schema, so the description need not repeat them. It adds no syntax, default, or interaction detail (e.g., how paper_type/binding_type alter spine width) beyond what the schema already supplies, making the baseline 3 correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Calculate) and resource (KDP print wrap) and enumerates the concrete outputs: back/spine/front/bleed in inches and pixels at 300 DPI, spine width, spine-text eligibility, and barcode zone. The phrase 'Free, no book needed' and the reference to create_full_wrap's rules make clear this is a pure calculator, distinct from the sibling that actually creates a wrap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Free, no book needed' tells the agent this can be called independently of any book/wrap resource, and 'It applies create_full_wrap's rules' signals that results are consistent with that sibling. It stops short of stating an explicit exclusion such as 'call create_full_wrap instead when you want an actual wrap created,' so the routing guidance is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources