Skip to main content
Glama
Nizoka

pdfnative-mcp

Inspect document layout (dry run)

inspect_layout
Read-onlyIdempotent

Preview page count and block placement before generating a PDF. Pass the same title, blocks, and layout settings to get total pages plus each block's page and coordinates.

Instructions

Pagination preview WITHOUT generating a PDF: page count and where every block lands (page, x, top, width, height in points). Same blocks as generate_basic_pdf plus every input that moves a block (title, footerText, pdfA, normalize, embedFonts, pageSize, margins, headerTemplate, footerTemplate): pass what you will give generate_basic_pdf and the page count matches. Known engine gap: a 'toc' block is measured as 0 pt here (its real height depends on the headings), so documents with a toc may paginate one page later. Read-only, deterministic. Token-frugal: verbosity:'summary', fields:['totalPages'].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pdfANoTagged (PDF/A) layout mode, as you would pass it to generate_basic_pdf. PDF/A level: pdfa1b (simple text+images), pdfa2b/pdfa2u (richer; 2u = Unicode mapping), pdfa3b (attachments / Factur-X). Pair with embedFonts=true for a valid claim. Exclusive with encryption. See docs/guides/PDFA.md.
titleYesDocument title — reserves the title band on page 1 exactly as generate_basic_pdf does.
blocksYesOrdered list of content blocks composing the document body.
fieldsNoOptional dot-path projection applied to the structured result (e.g. ['totalPages'] or ['pages.blocks.type']). Composes after verbosity. Unknown paths are omitted.
marginsNoMargins in points, all four required (0–200). Default 45 / 36 / 35 / 36.
pageSizeNoPortrait page preset (points): A4 595.28×841.89 (default), Letter 612×792, Legal 612×1008, A3 841.89×1190.55, Tabloid 792×1224. print.* boxes must fit it.
normalizeNoUnicode normalization before shaping ('NFC' recommended for glyph coverage; NFD/NFKC/NFKD accepted). Omit = none.
verbosityNo'full' (default) or 'summary' (scalars only: pageWidth, pageHeight, totalPages, blockCount; pages[] and margins dropped).full
embedFontsNoMeasure with the embedded Noto Sans Latin metrics instead of Helvetica — pass the same value you will give generate_basic_pdf. (Embed Noto Sans Latin instead of the viewer base-14 Helvetica. REQUIRED for a valid PDF/A claim (ISO 19005 §6.2.11.4.1) and for strict=true; adds ~0.3 MiB.)
footerTextNoFooter text as you would pass it to generate_basic_pdf (reserves the footer band).
footerTemplateNoRunning footer on every page. Replaces the default footer: footerText is then ignored and page numbers appear only via {page}/{pages}.
headerTemplateNoRunning header on every page (left / center / right zones); reserves 15 pt.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNoPer-page block placement, in render order. A table that spans pages appears once per slice.
marginsNoPage margins { top, right, bottom, left } in points.
pageWidthNoPage width in points (595.28 = A4).
blockCountNosummary only: number of placed blocks (table slices count once each).
pageHeightNoPage height in points (841.89 = A4).
totalPagesNoNumber of pages the blocks paginate into.
Behavior5/5

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

The annotations (readOnlyHint, idempotentHint, destructiveHint) already cover safety, and the description adds meaningful behavior beyond them: it does NOT generate a PDF, it is deterministic, and it has a known engine gap for 'toc' blocks which can make pagination one page short. The token-frugal usage note ('verbosity:'summary', fields:['totalPages']') adds practical behavioral guidance. No contradiction with annotations.

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?

Every sentence earns its place: the first sentence states the purpose plus output shape, the second defines the parameter semantics through the sibling relation, the third discloses a known limitation, and the fourth summarizes safety and efficiency. Front-loaded with the most critical fact (no PDF), no filler, and not bloated despite the large schema. The description is short but complete.

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?

The description is complete for a complex 12-parameter tool with 100% schema coverage and a present output schema. It covers the tool's role among siblings, its return semantics, its known edge case, and its performance/token profile. Nothing needed to invoke it correctly is missing — it distinguishes itself from the sibling, states contract with the parameters, and flags the only caveat in the measurement.

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

Parameters4/5

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

The schema already has 100% description coverage, so the baseline is 3 even without extra description. The description adds cross-cutting semantic value by saying that all these parameters behave exactly as in generate_basic_pdf, meaning the schema descriptions can be interpreted consistently across tools. It also highlights the dependency: pass the same values to get a matching page count. It doesn't duplicate per-parameter schema detail but does add meaning about parameter usage intent.

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 opens with 'Pagination preview WITHOUT generating a PDF', a specific verb-resource pairing that immediately distinguishes this tool from generate_basic_pdf. The purpose is further sharpened by listing the exact output: page count and where every block lands (page, x, top, width, height in points). It is far beyond a tautology and clearly names the sibling it is not.

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

Usage Guidelines5/5

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

The description explicitly instructs the agent to pass the same inputs that would be given to generate_basic_pdf, including the full list of layout-affecting parameters. It names the sibling tool directly and clarifies the precondition/use case: validate pagination before generating a PDF. The line about a toc measured as 0 pt also tells the agent when the page count may be unreliable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nizoka/pdfnative-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server