Skip to main content
Glama
Nizoka

pdfnative-mcp

Prepare signature placeholder

prepare_signature_placeholder
Idempotent

Create a PDF with an embedded /Sig AcroForm placeholder for digital signatures. Customize placeholder size, attach to specific page, or precompute the placeholder PDF separately from signing.

Instructions

Create a PDF with an embedded /Sig AcroForm placeholder ready to be digitally signed by the sign_pdf tool. NOTE: as of v1.0.0, sign_pdf auto-injects a placeholder when missing (autoInjectPlaceholder defaults to true), so this tool is OPTIONAL. Use it only when you need to: (a) customize the placeholder size for >4096-bit RSA keys via placeholderBytes, (b) attach the signature widget to a specific page via pageIndex, or (c) precompute and ship the placeholder PDF separately from the signing step. Otherwise call sign_pdf directly with any PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pdfANoOptional PDF/A conformance level (powered by pdfnative v1.2). Use 'pdfa1b' for archival of simple text+images, 'pdfa2b'/'pdfa2u' for richer content (2u guarantees Unicode mapping), 'pdfa3b' when embedding source attachments (Factur-X / ZUGFeRD). Mutually exclusive with PDF encryption. See docs/guides/PDFA.md. Note: PDF/A + signatures requires PAdES-A; verify with inspect_pdf.
titleYesDocument title. Used as the PDF metadata title and rendered at the top of page 1.
blocksNoOptional document body blocks rendered before the signature field.
reasonNoReason for signing (e.g. "Approved", "I agree to the terms").
locationNoSigning location (city / country).
fieldNameNoOptional AcroForm field name for the signature widget (default 'Signature1').
pageIndexNoZero-based page index the (invisible) widget attaches to (default 0).
outputModeNoEither 'base64' (returns the PDF inline) or 'file' (writes to a sandboxed path inside PDFNATIVE_MCP_OUTPUT_DIR).base64
outputPathNoRequired when outputMode='file'. Relative path inside the sandbox; must end with .pdf.
signerNameNoName of the intended signer, embedded in the /Sig dictionary.
contactInfoNoContact information for the signer.
placeholderBytesNoReserved bytes for the future CMS /Contents blob (default 16384). Increase only for >4096-bit RSA or PAdES-B-LT.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
filePathNoAbsolute sandboxed file path (when mode='file').
sizeBytesYes
Behavior4/5

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

Annotations already mark this as idempotent and non-destructive. The description adds useful behavioral context beyond annotations: it explains the placeholder size customization, the page index parameter, the auto-injection behavior of sign_pdf, and the PDF/A conformance options. It does not contradict annotations.

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?

The description is a single paragraph that is efficient and front-loaded with the tool's purpose and relationship to sign_pdf. However, it could be slightly more scannable with bullet points for the three usage scenarios. No wasted sentences, but minor improvement possible.

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?

Given 12 parameters, rich input schema, and the presence of an output schema (as per context signals), the description covers the tool's optionality, key use cases, and relationship to sibling tools. It does not elaborate on return format or error handling, but the output schema fills that gap. Overall, it provides sufficient context for a complex tool.

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%, and each parameter has detailed descriptions within the schema. The tool's description itself does not add significant parameter-level details beyond what the schema already provides. Baseline of 3 is appropriate as the schema does the heavy lifting.

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 clearly states the tool creates a PDF with an embedded /Sig AcroForm placeholder for digital signing. It uses a specific verb (create) and resource (PDF with signature placeholder), and distinguishes itself from the sibling sign_pdf tool by explaining when to use this tool vs. letting sign_pdf auto-inject the placeholder.

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 notes that this tool is optional and lists three specific scenarios where it should be used (customizing placeholder size for >4096-bit RSA keys, attaching widget to a specific page, or precomputing the placeholder separately). It also advises when to not use it: 'Otherwise call sign_pdf directly.' This provides clear when-to-use and when-not-to-use guidance.

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