Skip to main content
Glama
verifactu-mcp

verifactu-mcp

Validate VeriFactu XML

validate_verifactu_xml
Read-onlyIdempotent

Validate VERI*FACTU XML against the official AEAT schema and run invoice chain and fingerprint checks to confirm exported records are consistent.

Instructions

Audit VERI*FACTU XML exported by an invoicing program (RegFactuSistemaFacturacion, a SOAP envelope, or any XML holding RegistroAlta / RegistroAnulacion elements, in document order).

Validates RegFactuSistemaFacturacion against the official AEAT schema (SuministroLR.xsd) when present, then runs every chain and fingerprint check of validate_invoice_chain. XML that holds no records is not charged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_verifactu_xml"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNo
content_base64No
continues_fromNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly=true, idempotent=true, and openWorld=false, so the safety profile is covered. The description adds genuine context beyond that: schema validation against SuministroLR.xsd only 'when present', chained execution of all validate_invoice_chain checks, and a billing rule ('XML that holds no records is not charged'). It does not describe failure behavior or error reporting, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The accepted-input enumeration is front-loaded and the validation sequence follows in order, so an agent learns scope before mechanics. Two short paragraphs with no filler, though the parenthetical list of accepted XML shapes is dense enough to slow scanning slightly.

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?

An output schema exists, so return-value explanation is not required, and the description adequately explains the validation pipeline and its billing caveat. The major gap is the unexplained parameter set (base64 alternative and continuation parameter) for a tool with 0% schema coverage. Functional enough to call, but an agent could easily misuse the input fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must carry the burden and it largely does not. 'content' and 'content_base64' are never mentioned as alternative inline-XML versus encoded payload inputs, and 'continues_from' — presumably for multi-document continuation — is entirely unexplained. Only a passing reference to 'document order' hints at how records are processed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Audit') plus a precisely scoped resource (VERI*FACTU XML) and enumerates the accepted shapes: RegFactuSistemaFacturacion, a SOAP envelope, or any XML containing RegistroAlta/RegistroAnulacion elements. It also positions itself relative to validate_invoice_chain by saying it runs 'every chain and fingerprint check of' that tool, implying a superset. It stops short of an explicit one-line contrast with the sibling, so it is clear but not maximally differentiated.

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 when the tool applies by listing the input shapes it accepts, which lets an agent infer 'use this when you have an exported XML file.' However, there is no explicit statement of when to prefer it over validate_invoice_chain or the other validators, nor any prerequisites or exclusions. Usage is therefore implied rather than directed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.