Skip to main content
Glama

formatPaperback KDP calculators

KDP margins and gutter

kdp_margins
Read-onlyIdempotent

Inside (gutter) and outside margins KDP requires for a paperback page count, plus the largest text area at a trim size.

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": {
      "page_count": "<page_count>"
    },
    "name": "kdp_margins"
  }
}

Input Schema

NameRequiredDescriptionDefault
trim_sizeNoKDP trim size key, width x height in inches, e.g. "6x9" or "5.5x8.5"6x9
page_countYesInterior page count (24–828)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this a safe, read-only, idempotent, closed-world operation, so the description need not restate safety. It does add value by naming the return contents (gutter margin, outside margin, largest text area), which matters since there is no output schema. However, it omits units (inches vs mm) and what 'largest text area' means dimensionally.

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 compact sentence with the primary outputs front-loaded. The trailing clause 'plus the largest text area at a trim size' is loosely attached and slightly ambiguous about what exactly is returned, which costs it a point but not readability.

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?

With no output schema, the description carries the burden of explaining returns; it lists the values but not their units or structure, and doesn't explain how trim_size default 6x9 interacts. Adequate for a simple two-parameter lookup, but incomplete on output format.

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 description coverage is 100%, with trim_size enumerated and page_count bounded 24–828, so the schema already carries parameter meaning. The description mentions page count and trim size conceptually but adds no format, unit, or default guidance beyond the schema. Baseline 3 applies.

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 concrete outputs (inside/gutter and outside margins) and the inputs that drive them (page count, trim size), plus the additional largest-text-area result. It is a specific verb-less lookup, but an agent can tell it computes KDP margin requirements rather than cover dimensions or royalty. It stops short of explicitly contrasting itself with siblings like kdp_trim_sizes.

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

Usage Guidelines3/5

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

Usage is only implied: the required page_count and optional trim_size suggest you call it when laying out a paperback interior. There is no explicit when-to-use statement, no mention of when to prefer kdp_trim_sizes or kdp_cover_dimensions, and no stated prerequisites.

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