Skip to main content
Glama
Frihet-io

Frihet MCP Server

Export E-Invoice XML

einvoice_export
Read-onlyIdempotent

Export invoices to e-invoicing XML formats including Facturae, XRechnung, Factur-X, FatturaPA, PEPPOL, UBL, and CII. Produce signed XML for Spanish Facturae submissions.

Instructions

Export an invoice as e-invoicing XML in a specific format. Supports Facturae (ES B2G), XRechnung-CII (DE), XRechnung-UBL (DE), Factur-X profiles (FR), FatturaPA (IT), PEPPOL-BIS-3 (EU network), UBL and CII (generic). For Facturae, set signed=true to get XAdES-enveloped XML for FACe/AEAT submission. Returns a signed download URL valid for 24 hours.

/ Exporta una factura como XML de facturacion electronica en el formato especificado. Para Facturae con signed=true devuelve XML firmado XAdES para envio a FACe/AEAT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatYesE-invoice format. Choose based on recipient country: ES B2G→facturae, DE→xrechnung-cii/ubl, FR→facturx-*, IT→fatturapa, EU PEPPOL→peppol-bis-3, generic→ubl or cii / Formato de factura electronica.
signedNoIf true, returns XAdES-enveloped signed XML (Facturae only). Requires workspace signing certificate configured. / Si true, devuelve XML firmado XAdES (solo Facturae). Requiere certificado de firma configurado.
invoiceIdYesFrihet invoice ID to export / ID de la factura a exportar

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlYesRaw e-invoice XML content (the document itself, returned inline by the CF)
formatYesE-invoice format used (echoes the requested format)
signedYesWhether XAdES signature was applied (Facturae + signed=true only)
filenameYesSuggested filename (e.g. INV-2026-001_Facturae.xml)
contentTypeYesMIME type of the XML payload (application/xml)
Behavior4/5

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

Annotations indicate readOnlyHint=true, idempotentHint=true, and destructiveHint=false, which the description does not contradict. The description adds important behavioral details: returns a signed download URL valid for 24 hours, and for Facturae signed=true returns XAdES-enveloped XML. This adds value beyond the 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 concise, with each sentence earning its place. It is front-loaded with the primary action ('Export an invoice as e-invoicing XML'), followed by a structured list of formats, country mapping, and optional details. The bilingual format adds completeness without redundancy.

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 (3 parameters, many enum options, country-specific behavior), the description covers all essential aspects: purpose, format selection, signed parameter details, prerequisites, and output structure (URL with 24h validity). It leaves no critical gaps for a correct agent invocation.

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?

Input schema has 100% description coverage for all 3 parameters. The description enriches parameter meaning by explaining the XAdES signing for Facturae and certificate requirement for signed=true. This provides practical context that the schema alone does not convey.

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 exports an invoice as e-invoicing XML in a specific format, listing many supported formats. It distinguishes itself from siblings like get_invoice_pdf and get_invoice_einvoice by its focus on e-invoice XML generation, making the purpose very specific and actionable.

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 provides explicit guidance on which format to use based on country, mentions the signed parameter specifically for Facturae for FACe/AEAT submission, and notes the prerequisite of a workspace signing certificate for signed output. This goes beyond basic usage and helps the agent make correct choices.

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/Frihet-io/frihet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server