Skip to main content
Glama
Nizoka

pdfnative-mcp

Update document metadata

update_metadata

Update existing PDF metadata (title, author, subject, keywords) via incremental revision, keeping XMP synchronized and refreshing ModDate. Preserves prior revisions and signatures.

Instructions

Rewrite /Info (title, author, subject, keywords) of an EXISTING PDF as an incremental update; XMP stays in sync on PDF/A documents; /ModDate is refreshed (pin modDate for reproducible bytes on the same host TZ). Earlier revisions and signatures stay byte-identical — the new revision is unsigned (sign_pdf / timestamp_pdf again if needed). Encrypted sources → ENCRYPTED_SOURCE. For metadata at generation time use the metadata option of the document tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoNew /Info /Title (mirrored to XMP dc:title when the document carries XMP).
authorNoNew /Info /Author (XMP dc:creator).
modDateNoISO-8601 modification instant for /ModDate and xmp:ModifyDate. Defaults to now; pin it for reproducible output.
subjectNoNew /Info /Subject (XMP dc:description).
keywordsNoNew /Info /Keywords (XMP pdf:Keywords).
pdfBase64YesBase64-encoded PDF to update (unencrypted).
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').

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?

It discloses several behavioral traits: the update is incremental, XMP stays in sync on PDF/A documents, /ModDate is refreshed, earlier revisions and signatures remain byte-identical, and the new revision is unsigned. These details go well beyond the annotations and explain consequences that materially affect an agent's subsequent decisions.

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?

Four purposeful sentences stretch the agent exactly what it needs: what the tool does, what else is affected, what is preserved, and when not to use it. There is almost no redundant phrasing, and the most important facts are front-loaded.

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's complexity, the 100% parameter coverage, and the presence of an output schema, the description covers the remaining operational concerns: encrypted-source failure, signature preservation, XMP behavior, and reproducibility. An agent has enough context to select and invoke this tool correctly and to plan follow-up actions such as re-signing.

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?

The input schema already describes all 8 parameters with 100% coverage, so the description does not need to restate them. The only added parameter-level guidance is the modDate pinning tip ('same host TZ'), which the schema also partially captures. This adds marginal value, so the baseline score of 3 is appropriate.

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 a specific verb and resource: 'Rewrite /Info (title, author, subject, keywords) of an EXISTING PDF as an incremental update.' It makes the scope precise and distinguishes itself from metadata files placed at document generation time by pointing to the `metadata` option of document tools, so an agent can separate this from `generate_basic_pdf` and similar.

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 last sentence is an explicit routing rule: 'For metadata at generation time use the `metadata` option of the document tools.' The description also gives conditional guidance for encrypted sources and for whether a signature needs to be reapplied (sign_pdf / timestamp_pdf again), which tells an agent what to do before and after this tool.

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