Skip to main content
Glama

TinyWink Publishers

KDP margins and page size

kdp_interior_margins
Read-onlyIdempotent

KDP minimum inside (gutter) and outside margins for a page count, and the PDF page size with or without bleed.

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>"
    },
    "name": "kdp_interior_margins"
  }
}

Input Schema

NameRequiredDescriptionDefault
trimNoTrim size id like "6x9", "5.5x8.5", "5x8" (KDP trims: 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.5x8.5, 8.5x11, 8.27x11.69) or any "WxH" in inches.6x9
bleedNo
pagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is fully covered. The description adds that margins are 'minimum' values and that bleed changes the page size, which is genuine behavioral context. It stops short of stating output units (inches), rounding, or whether margins vary by bleed.

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

Conciseness4/5

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

A single tight sentence with the two output families front-loaded and zero filler. It is arguably too compressed for a calculator, but nothing in it is wasted.

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

Completeness3/5

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

For a 3-param read-only calculation with no output schema, the description should convey the shape and units of what comes back (margin values in inches, a page-size pair for bleed/no-bleed). It conveys the categories of output but not their form, leaving a real gap for an agent assembling a print-ready spec.

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 only 33%: trim is documented with an explicit enum-like list, but bleed and pages carry no schema descriptions. The description partially compensates by tying 'page count' to margins and 'with or without bleed' to page size, which explains the causal role of both undocumented params. It still doesn't clarify units or expected input format for pages beyond the schema's 24–828 bounds.

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

Purpose4/5

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

Names the specific resource and the exact outputs: minimum inside (gutter) and outside margins for a given page count, plus PDF page size with/without bleed. An agent can tell this is a margin/page-size calculator rather than a royalty or cover tool. It does not explicitly name a sibling to distinguish itself from (e.g. list_trim_sizes or calculate_cover_size), which keeps it at 4.

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

Usage Guidelines2/5

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

There is no when-to-use, when-not-to-use, or alternative guidance anywhere in the description. The agent must infer from the phrase 'KDP ... margins' that this is for interior layout sizing, and nothing tells it whether to call list_trim_sizes first or how this differs from cover-size calculations.

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