Skip to main content
Glama
cmendezs

mcp-facturacion-electronica-es

by cmendezs

es__generate_facturae_xml

Generate Facturae 3.2.2 XML invoices for B2G submission to FACe. Produces unsigned documents ready for XAdES signing.

Instructions

Genera una factura XML conforme a Facturae 3.2.2 para envío B2G al portal FACe.

El documento generado está sin firmar; use es__sign_facturae_xades para firmarlo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoiceYesInvoiceDocument con seller, buyer, vat_summary y lines.
tax_typeNoImpuesto indirecto aplicable a todas las líneas de la factura (IVA: península/Baleares; IPSI: Ceuta/Melilla; IGIC: Canarias). No se admite mezclar impuestos en una misma factura. Por defecto: 'IVA'.IVA
irpf_rateNoTipo de retención IRPF (%), emitido en TaxesWithheld.
irpf_amountNoImporte de retención IRPF a deducir del total de la factura.
schema_versionNoVersión del esquema Facturae (por defecto: '3.2.2').3.2.2
invoice_issuer_typeNoEU (emisor=vendedor), EM (emisor=comprador), TE (tercero). Por defecto: 'EU'.EU
resolution_referenceNoResolutionReference para facturas B2G a Administraciones Públicas.
recargo_equivalencia_rateNoTipo de Recargo de Equivalencia (%), si aplica.
recargo_equivalencia_amountNoImporte explícito del Recargo de Equivalencia. Si se omite, se calcula como base_imponible * recargo_equivalencia_rate / 100.
receiver_transaction_referenceNoReceiverTransactionReference para facturas B2G.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It usefully discloses that the generated document is unsigned and intended for FACe, but it does not mention side effects, validation behavior, or whether any network/auth involvement occurs.

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 two short, front-loaded sentences. The first states purpose and scope; the second adds the essential signing caveat. No wasted words.

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 complex input schema and presence of an output schema, the description covers the key missing context: the generated XML is unsigned and should be signed next. It does not explicitly mention submission to FACe or schema validation, but those are represented as sibling tools.

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 the rich parameter descriptions already carry the semantic load. The tool description itself adds no parameter-level detail, which is acceptable under the baseline for full schema coverage.

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 states a specific verb ('Genera'), a concrete resource ('factura XML conforme a Facturae 3.2.2'), and a clear scope ('para envío B2G al portal FACe'). It also differentiates from the signing sibling by explicitly noting the document is unsigned.

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 gives clear context: use this tool to generate an unsigned Facturae XML for B2G/FACe, then use es__sign_facturae_xades. It does not explicitly mention when not to use it versus validate/submit tools, but the core alternative is named.

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/cmendezs/mcp-facturacion-electronica-es'

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