Skip to main content
Glama
Frihet-io

Frihet MCP Server

Get Invoice E-Invoice XML

get_invoice_einvoice
Read-onlyIdempotent

Download the EN16931-compliant e-invoice XML for an invoice. Auto-detects format (UBL, CII, XRechnung, Factur-X, FatturaPA, PEPPOL).

Instructions

Download the e-invoice XML for an invoice. Returns EN16931-compliant XML in the auto-detected format (UBL, CII, XRechnung, Factur-X, FatturaPA, PEPPOL). Only available after the invoice has been saved/sent. / Descarga el XML de factura electronica para una factura. Devuelve XML conforme a EN16931 en el formato auto-detectado (UBL, CII, XRechnung, Factur-X, FatturaPA, PEPPOL). Solo disponible despues de guardar o enviar la factura.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInvoice ID / ID de la factura

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlNo
filenameNo
formatNo
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint, and openWorldHint. The description adds useful behavioral context: it is a download operation (read-only), only available post-save/send, and returns auto-detected XML formats. No contradictions 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 concise: two English sentences plus Spanish translation. Every sentence adds value (action, format, precondition). It is front-loaded with the core purpose.

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 simple tool with a single parameter and an output schema (not needing return value explanation), the description is complete: it specifies what it does, what it returns (EN16931 XML formats), and a precondition. No gaps.

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 schema has 100% coverage with a clear description for the single parameter 'id' ('Invoice ID / ID de la factura'). The description adds no further semantics beyond what the schema provides, meeting the baseline.

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 'Download the e-invoice XML for an invoice.' It uses a specific verb and resource, and by specifying the format (EN16931-compliant, auto-detected formats), it distinguishes this tool from siblings like get_invoice (JSON) and get_invoice_pdf (PDF).

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 provides a clear precondition: 'Only available after the invoice has been saved/sent.' This guides the agent on when to use the tool. However, it does not explicitly mention when not to use it or provide alternatives, though the sibling context implies alternatives exist.

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