Audit AEAT VeriFactu Hash Chain
verifactu_verify_chainAudit an ordered batch of Spanish AEAT VeriFactu invoice records to verify every record SHA-256 Huella and cryptographic link to the preceding record. Stateless, deterministic, read-only with zero storage; returns chainValid (boolean), recordCount, and per-record hashMatches / chainLinkMatches flags (returns isError=true if records is empty or malformed). Use when inspecting historical invoice logs for tampering or broken links; use verifactu_fingerprint instead to compute a single new invoice hash.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"records": "<records>"
},
"name": "verifactu_verify_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Chronologically ordered list of VeriFactu invoice records; each record must include its stored expectedHash. |