Skip to main content
Glama

Factur-X e-invoicing

Embed Factur-X XML into a PDF

embed_xml
Read-onlyIdempotent

Attach a Factur-X XML to an existing PDF and return a PDF/A-3 Factur-X invoice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesFactur-X / CII XML text (must pass EN 16931 rules)
checkNoRule set to enforce before embeddingfr-ctc
languageNoDocument language metadatafr
pdf_base64YesYour visual invoice PDF, base64 encoded

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already convey readOnlyHint=true and idempotentHint=true, so the agent knows this is a safe, non-mutating, repeatable operation. The description adds the PDF/A-3 return format, but does not explain behavior around validation failures, the check parameter, or whether input XML must be schema-valid beyond what the schema description says.

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 a single, front-loaded sentence with no filler. Every word contributes to the core purpose and output format.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is adequate for a straightforward embedding operation with well-covered schema parameters, but it omits usage context relative to sibling tools, the default rule set, and any caveats about input validation. It does state the key output format, but an agent might need more guidance to choose this tool confidently over generate_invoice or validate_invoice.

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%, so all parameters are already documented in the input schema. The description adds no extra parameter-level meaning beyond 'existing PDF' and 'Factur-X XML', which are already present in the schema descriptions.

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 action (Attach/Embed), the resource (a Factur-X XML into an existing PDF), and the result (a PDF/A-3 Factur-X invoice). It is distinguishable from siblings like generate_invoice, validate_invoice, and extract_invoice, despite not naming them.

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 phrase 'to an existing PDF' gives clear context that this tool is for modifying/enriching an already existing PDF rather than generating a new one. However, it does not explicitly name alternatives or state when not to use it, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct stage of the Factur-X lifecycle: creation, validation, embedding into PDF, and extraction. There is no meaningful overlap between generate, validate, embed, and extract operations.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern: embed_xml, extract_invoice, generate_invoice, validate_invoice. The pattern is predictable and immediately conveys the action and object.

Tool Count5/5

Four tools is a well-scoped size for this domain, covering the essential operations without redundancy. Each tool earns its place in the set.

Completeness5/5

The toolkit covers the full core workflow: generate a compliant invoice, validate it, embed the XML in a PDF/A-3 document, and extract previously embedded data. No obvious lifecycle gaps exist for the stated purpose.

Resources