Skip to main content
Glama
hilvana-mcp

hilvana-mcp

Official

Check a PDF for Amazon KDP

kdp_check
Read-only

Check a print interior PDF against Amazon KDP paperback or hardcover requirements, verifying trim, bleed, page count, margins, fonts, image resolution, and metadata, returning page-level findings only.

Instructions

Checks a print interior against Amazon KDP requirements for a paperback or hardcover: page size (trim plus bleed), page count, margins and gutter by page count, embedded fonts, image resolution (300 DPI), transparency, annotations, bookmarks, metadata. Returns the findings by page; never page text or images. Read only.

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": {
      "path": "<path>",
      "binding": "<binding>",
      "trim": "<trim>"
    },
    "name": "kdp_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
inkNo
langNo
pathYesThe PDF, inside an allowed folder.
trimYesTrim size in inches, e.g. "8.5x11" or "6x9".
bleedNoTrue when art reaches the page edge.
bindingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description reinforces this with 'Read only.' It adds valuable beyond-schema behavior: findings are reported per page and page text/images are never returned, which tells the agent what it can safely expect in output. It doesn't state failure behavior (e.g. whether an unreadable PDF returns an error vs. findings) or any size/time limits.

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?

Two front-loaded sentences: what it checks, then what it returns and does not return. The long checklist is dense but each item is a distinct validation, so nothing reads as padding.

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

Completeness4/5

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

For a 6-parameter, no-output-schema validator, the description covers purpose, scope of checks, and return shape (findings by page, no content). The only gap is that two of the six parameters (ink, lang) receive no explanation anywhere, which could matter for interpreting which rule set is applied.

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?

With 50% schema description coverage, the description compensates partially by explaining trim + bleed as page size and by tying margins/gutter to page count and image resolution to 300 DPI. It also implicitly frames the binding parameter (paperback or hardcover) and ink presumably via the color checks. However the 'ink' and 'lang' parameters are never explained, and no parameter is given format or default guidance beyond what the schema already states.

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?

The description gives a specific verb (checks) and resource (a print interior PDF) and then enumerates exactly what is validated: page size/trim plus bleed, page count, margins and gutter, embedded fonts, image resolution, transparency, annotations, bookmarks, metadata. It also scopes the binding types (paperback or hardcover), which separates it from a generic inspector like pdf_inspect.

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?

Usage context is clear: this is a pre-submission validation for Amazon KDP print interiors. 'print interior' implicitly excludes cover files, giving a real scope boundary, but no explicit when-not conditions or alternative tools (e.g. pdf_inspect for general inspection) are named.

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