Skip to main content
Glama
Nizoka

pdfnative-mcp

Add a document timestamp (PAdES B-LTA)

timestamp_pdf

Append an RFC 3161 document timestamp to a signed PDF, extending its long-term validation (PAdES B-LTA). Re-run before the timestamp certificate expires to maintain proof of existence.

Instructions

PAdES B-LTA: append an RFC 3161 document timestamp (/DocTimeStamp, ETSI.RFC3161) over the whole document. Ladder step 4 after add_ltv; re-run before the TSA certificate expires. fieldName omitted → DocTimeStamp1, 2, …; a fieldName colliding with a signed field fails. Uses the OPERATOR TSA (PDFNATIVE_MCP_TSA_URL; TSA_NOT_CONFIGURED otherwise, no network without it). The token's status, imprint and nonce are checked before embedding (its own signature is verified by verify_pdf). Unencrypted PDFs only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldNameNoSignature field name for the timestamp. Omit it to get 'DocTimeStamp1', 'DocTimeStamp2', … auto-suffixed on each re-timestamp; an explicit name that collides with an existing signed field fails.
pdfBase64YesBase64-encoded PDF (unencrypted). Typically already signed (+ add_ltv) — a document timestamp on an unsigned PDF is allowed but proves only existence at that time.
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').
placeholderBytesNoRoom reserved for the TimeStampToken (default 12288). Raise it for TSAs that return large certificate chains.

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?

Even though annotations mark readOnlyHint=false, the description goes far beyond that: it discloses exact behavior (append over whole document, omitted fieldName auto-naming, TSA dependency, status/imprint/nonce checks, sandbox output behavior, and the SECURITY_VIOLATION risk when the sandbox is unconfigured). It does not contradict the provided 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 in the description is dense and purposeful: scope, procedure, failure mode, configuration dependency, security checks, and constraints are all covered without fluff. The content is compact yet complete for a five-parameter tool.

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?

Given the tool complexity, the annotations, the 100% schema description coverage, and the presence of an output schema, the tool is both internally complete. It covers when to use, ordering relative, constraints, configuration environment, output modes, and security-specific behavior.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful semantics for fieldName: omitted values produce DocTimeStamp1, 2, ... and colliding with a signed field fails. It also adds value by tying placeholderBytes to TSA certificate chain size in the frontend conceptual model.

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 uses a specific verb ('append an RFC 3161 document timestamp') and names the precise resource (/DocTimeStamp, ETSI.RFC3161). It clearly separates this from sibling tools by calling it 'Ladder step 4 after add_ltv' and mentioning verify_pdf for verifying its signature.

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 gives explicit usage context: it must be run after add_ltv, should be re-run before the TSA certificate expires, cannot be applied to encrypted PDFs, and fieldName collisions with signed fields fail. It also states the condition under which the tool is unavailable (TSA_NOT_CONFIGURED).

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