Skip to main content
Glama
Nizoka

pdfnative-mcp

Add embedded file attachment (PDF/A-3, Factur-X)

add_attachment
Idempotent

Embed files into a PDF/A-3 document for electronic invoices or supplementary data.

Instructions

Generate a PDF/A-3 (ISO 19005-3) document with one or more embedded files. USE THIS INSTEAD OF generate_basic_pdf when you need a Factur-X / ZUGFeRD electronic invoice (single XML payload with relationship='Source'), or any PDF that must carry machine-readable side-files. The visible document body is supplied via the optional blocks parameter (same block schema as generate_basic_pdf). The tool auto-emits PDF/A-3b conformance — PDF/A-3 is the only PDF/A part that legally permits embedded files. Each attachment is capped at 8 MiB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesDocument title (also written to the /Info dictionary).
blocksNoOptional human-readable document body (same block schema as generate_basic_pdf). When omitted, a minimal cover paragraph is emitted so the PDF is not empty.
footerTextNoOptional footer text rendered on every page.
outputModeNobase64
outputPathNo
attachmentsYesOne or more files to embed. Auto-enables PDF/A-3 (ISO 19005-3). Factur-X invoices use a single attachment with relationship=Source and mimeType=application/xml.

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 indicate idempotentHint=true but lack safety details. The description adds that the tool auto-emits PDF/A-3b conformance, explains why PDF/A-3 is required for embedded files, and notes the 8 MiB attachment cap. There is 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?

The description is three sentences with zero waste. It front-loads the core function, immediately gives usage guidance with a strong directive, and adds technical context efficiently.

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 the tool complexity (multiple parameters, output schema, sibling tools), the description covers the primary use case, contrasts with siblings, and notes important constraints. It omits details about output mode but the schema covers that.

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 67%, and the description adds value for key parameters: explains that blocks uses the same schema as generate_basic_pdf, and that attachments auto-enable PDF/A-3 and are used for Factur-X. It does not elaborate on outputMode/outputPath, but the schema provides enums and defaults.

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 generates a PDF/A-3 document with embedded files, specifies the ISO standard, and explicitly contrasts with generate_basic_pdf for Factur-X/ZUGFeRD use cases. The verb 'Generate' and resource 'PDF/A-3' are specific and distinguish from siblings.

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

Usage Guidelines4/5

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

The description explicitly says 'USE THIS INSTEAD OF generate_basic_pdf' when embedded files are needed, and provides context for Factur-X invoices. It does not explicitly state when not to use, but the contrast with the sibling implies the exclusion.

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