Skip to main content
Glama
Nizoka

pdfnative-mcp

Embed LTV validation material (PAdES B-LT)

add_ltv

Adds long-term validation (LTV) to a signed PDF by embedding a Document Security Store with certificates and OCSP/CRL data, enabling future verifiers to validate the signature after certificate expiration.

Instructions

PAdES B-LT: embed a Document Security Store (/DSS + per-signature /VRI) with the certificates and OCSP/CRL material future verifiers need ('LTV enabled' in Adobe Reader once the root is trusted). Ladder step 3: sign_pdf (profile:'pades', timestamp:true) → add_ltv → timestamp_pdf. mode 'online' (default) fetches through the OPERATOR revocation provider (PDFNATIVE_MCP_REVOCATION + PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS; REVOCATION_NOT_CONFIGURED otherwise — no network without it); mode 'offline' embeds caller-supplied DER certificates / OCSP responses / CRLs with zero network. Incremental (existing /DSS merged). Needs ≥ 1 signed signature; unencrypted PDFs only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo'online': fetch OCSP/CRL through the operator provider (PDFNATIVE_MCP_REVOCATION + allow-list; REVOCATION_NOT_CONFIGURED otherwise). 'offline': embed the caller-supplied DER material, zero network.online
pdfBase64YesBase64-encoded SIGNED PDF (unencrypted). Sign with sign_pdf (profile=pades recommended) first.
outputModeNo'base64' (default) returns the PDF inline; 'file' writes it inside the PDFNATIVE_MCP_OUTPUT_DIR sandbox (SECURITY_VIOLATION when the sandbox is not configured).base64
outputPathNoRelative path inside PDFNATIVE_MCP_OUTPUT_DIR (required when outputMode='file').
preferOcspNoonline: try OCSP before CRL for each certificate (default true).
crlsDerBase64Nooffline: DER CertificateList (RFC 5280) blobs to embed in /DSS /CRLs.
certificatesDerBase64Nooffline: DER X.509 certificates to embed in /DSS /Certs.
ocspResponsesDerBase64Nooffline: DER OCSPResponse (RFC 6960) blobs to embed in /DSS /OCSPs.
extraCertificatesDerBase64Noonline: additional DER certificates (intermediates / roots) to complete chains the CMS does not carry.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
summaryNoTool-specific summary, when produced.
filePathNoSandboxed absolute path (file mode).
sizeBytesYes
diagnosticsNoPDF/A diagnostics (when includeDiagnostics=true).
Behavior5/5

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

The description discloses important behavioral traits beyond annotations: network behaviour via the OPERATOR revocation provider, zero network in offline mode, incremental merging of existing /DSS, and constraints on signed/unencrypted input. There is no contradiction with the annotations, which treat it as a mutating and world-open operation.

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?

The description is dense but efficient: it front-loads the core purpose and PAdES context, then uses compact parentheticals for mode/error details. It avoids fluff while still packing workflow, security, and environmental constraints into a text that earns its length.

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?

For a complex, 9-parameter tool with external network side effects, this description is complete. It explains the PAdES level, the call sequence, the mode differences, the security configuration, the offline/online material sources, and the key input constraints. Combined with the full schema and present output schema, an agent has enough to invoke it correctly.

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 100%, and each parameter already has detailed inline descriptions. The description adds some contextual value about modes and prerequisites, but it largely restates information present in the input schema rather than contributing new parameter-level semantics.

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 states a specific verb-resource pair: 'embed a Document Security Store (/DSS + per-signature /VRI)' with validation material. It also situates the tool in a clear sequence (sign_pdf → add_ltv → timestamp_pdf), which disambiguates it from sign_pdf and timestamp_pdf without needing to inspect the schema.

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?

Usage context is explicit: it is ladder step 3, requires at least one signed signature, requires an unencrypted PDF, and differentiates online vs offline modes. It even names the error condition (REVOCATION_NOT_CONFIGURED) and the environment prerequisites, leaving no ambiguity about when this tool is appropriate.

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