Skip to main content
Glama
cmendezs

mcp-facturacion-electronica-es

by cmendezs

es__cancel_verifactu_record

Generate a VERI*FACTU cancellation record (TipoHuella 01) to annul an original invoice by providing its number, date, issuer details, and the previous hash to maintain the chain.

Instructions

Genera un registro de anulacion VERI*FACTU (TipoHuella=01).

Encadenado a la secuencia de huellas actual.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issuer_nifYesNIF del emisor.
issuer_nameYesNombre/razon social del emisor.
previous_hashYesHuella del ultimo registro en la cadena.
previous_fechaNoFechaExpedicionFactura del registro anterior en DD-MM-YYYY.
previous_num_serieNoNumSerieFactura del registro anterior.
previous_emisor_nifNoNIF del emisor del registro anterior (IDEmisorFactura en EncadenamientoFacturaAnteriorType).
original_invoice_dateYesFechaExpedicionFactura original (YYYY-MM-DD).
original_invoice_numberYesNumSerieFactura a anular.

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 full behavioral burden. It discloses that the tool generates a cancellation record and that it is chained to the existing hash sequence, which is useful. However, it does not clarify whether this is a local generation, whether it mutates stored state, or whether any submission side effect 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 extremely concise: two short sentences, both informative. It front-loads the core purpose and then adds the chaining constraint without any filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is adequate for a tool with a rich input schema and an output schema, but it lacks explicit guidance on when to use it versus siblings and does not describe behavioral side effects. For a complex VERI*FACTU cancellation workflow, slightly more context would be beneficial.

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 input schema already documents all parameters clearly. The description adds no extra parameter-level meaning, but it does not need to because the schema is self-sufficient.

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 a specific action: generating a VERI*FACTU cancellation record with TipoHuella=01. It distinguishes itself from the sibling generate_verifactu_record by identifying this as an annulment record rather than a normal record.

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?

The description implies usage context by noting the record is chained to the current hash sequence, which tells the agent that previous_hash must be from the latest record. However, it does not explicitly state when to prefer this tool over alternatives such as generate_verifactu_record or validate_verifactu_record.

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