Skip to main content
Glama
cmendezs

mcp-facturacion-electronica-es

es__generate_verifactu_record

Generate VERI*FACTU invoice records (HAC/1177/2024) with SHA-256 hash chaining. Returns XML and hash for linking to the next record. Must first confirm VERIFACTU regime via es__detect_regional_regime.

Instructions

Genera un registro de factura VERI*FACTU (Orden HAC/1177/2024) con cadena SHA-256 Huella. Devuelve el XML del registro y la Huella para encadenar con el siguiente registro. Llame a es__detect_regional_regime antes para confirmar que el régimen es VERIFACTU.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoiceYesDatos de la factura (date, number, seller, buyer, vat_summary, note).
previous_hashNoHuella SHA-256 del registro precedente (omitir o null para el primero).
software_idYesIDSistemaInformatico del software certificado.
software_nifYesNIF del fabricante del software.
invoice_typeYesTipoFactura según HAC/1177/2024 Annex I.
Behavior3/5

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

No annotations exist, so description carries full burden. It explains generation and output (XML, hash) but does not disclose error conditions, permission needs, or side effects. Core behavior is covered, but safety details are missing.

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 sentences with no superfluous text. First sentence defines action and output; second provides critical prerequisite. Extremely efficient.

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 no output schema, description covers return values (XML and hash) and chaining. Mentions prerequisite call. Could benefit from error handling notes, but sufficient for typical usage.

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 coverage is 100%, so baseline 3. Description adds context about the chaining nature of previous_hash and the purpose (SHA-256 Huella). Does not significantly improve understanding beyond 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?

Description explicitly states it generates a VERI*FACTU invoice record with SHA-256 hash chain, returns XML and hash for chaining. This clearly distinguishes it from siblings like es__generate_facturae_xml or es__generate_ticketbai_xml.

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?

Provides explicit prerequisite: 'Llame a es__detect_regional_regime antes' and states the return of hash for chaining. While it doesn't list exclusive alternatives, the guidance on when to invoke is helpful.

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