Skip to main content
Glama
cmendezs

mcp-facturacion-electronica-es

es__generate_ticketbai_xml

Generate signed TicketBAI XML invoices for Basque provinces by auto-selecting the correct provincial XSD and adding XAdES-EPES signature with HuellaTBAI chain.

Instructions

Genera una factura XML TicketBAI con firma XAdES-EPES y cadena HuellaTBAI. Selecciona automáticamente el XSD provincial: Álava v1.2, Gipuzkoa v1.2, Bizkaia v2.1. Los XSDs provinciales NO son intercambiables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoiceYesDatos de la factura.
provinceYes
previous_hashNoHuellaTBAI del registro precedente (omitir para el primero).
software_licenseYesClave de licencia TicketBAI del software certificado.
cert_pathYesRuta al certificado PKCS#12 para firma XAdES.
cert_passwordNoContraseña del certificado.
Behavior4/5

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

Discloses key behaviors: auto-selection of provincial XSD, signature generation, and hash chaining. No annotations provided, but the description covers the tool's main processing steps. It stops short of stating side effects or permissions.

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?

Two concise, front-loaded sentences with no redundant words. Critical information (province auto-selection and XSD version details) is placed prominently.

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?

For a generation tool with no output schema, the description sufficiently explains what it produces and the auto-selection logic. It lacks return value details but this is acceptable for a tool that likely outputs XML content.

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?

The description adds value beyond the input schema by explaining the automatic XSD selection, which clarifies the province parameter. Schema coverage is high (83%+), so baseline is met and elevated by this extra context.

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 it generates a TicketBAI XML invoice with XAdES-EPES signature and HuellaTBAI chain, and auto-selects the provincial XSD. This distinguishes it from sibling tools like generate_facturae_xml or generate_b2b_einvoice_es.

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

Usage Guidelines3/5

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

Implied usage for Spanish regional e-invoicing, but no explicit guidance on when to use this vs alternatives (e.g., generate_verifactu_record, submit_ticketbai). The note about non-interchangeable XSDs is helpful but not sufficient for usage decisions.

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