Skip to main content
Glama

Spanish Fiscal Invoice QR Code Reader API

verifactu_qr_reader
Read-onlyIdempotent

Decode and validate Spanish fiscal invoice QR codes from raw QR text, PDF invoices, or images into structured JSON with issuer NIF validation, invoice number, ISO issue date, and gross amount. Deterministic offline decoding, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/verifactu-qr-reader.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "qrText": "https://www2.agenciatributaria.gob.es/wlpl/TIKE-CONT/ValidarQR?nif=B12345674&numserie=FAC-2026-0042&fecha=15-04-2026&importe=1210.00"
    },
    "name": "verifactu_qr_reader"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum QR codes decoded from a multi-page PDF (1-200).
qrTextNoRaw Spanish fiscal invoice QR payload text. Provide qrText or fileBase64.
fileNameNoOptional original filename.
fileBase64NoBase64-encoded PDF or image containing a Spanish fiscal invoice QR code (max 15 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / fileBase64 / description
      Previous value: -"Base64-encoded PDF or image (PNG/JPEG) containing a Spanish fiscal invoice QR code (max 15 MB)."New value: +"Base64-encoded PDF or image containing a Spanish fiscal invoice QR code (max 15 MB)."
    • changedInput schema / properties / qrText / description
      Previous value: -"Raw VeriFactu or TicketBAI QR payload text. Provide qrText or fileBase64."New value: +"Raw Spanish fiscal invoice QR payload text. Provide qrText or fileBase64."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations it adds genuinely useful operational context: deterministic offline decoding, no AI, nothing stored, a hard 5 calls/day per IP free ceiling, and the two paid auth paths (X-API-Key header or x402). What it omits is failure behavior, e.g. what happens when the payload is not a valid VeriFactu code or the NIF check fails.

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 core capability is front-loaded in one dense sentence, with pricing and auth isolated to a second, clearly separable sentence. It is efficient, though the pricing sentence carries URLs and plan names that are more commercial than operational.

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

Completeness5/5

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

With no output schema, the description compensates by enumerating the returned fields, and it covers input modes, size limits via schema, determinism/privacy, rate limits, and both auth mechanisms. For a stateless read-only decoder that is everything an agent needs before calling it.

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 all four parameters are already documented, and the description adds little parameter-level detail beyond restating the qrText/PDF/image input modes. The mention of 'issuer NIF validation' hints at validation semantics but does not clarify the qrText-vs-fileBase64 exclusivity or the limit behavior for multi-page PDFs.

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 opens with a concrete verb pair and resource: 'Decode and validate Spanish fiscal invoice QR codes', and immediately narrows the accepted inputs (raw QR text, PDF invoices, images) and the output shape (NIF, invoice number, ISO issue date, gross amount). The 'Spanish fiscal'/VeriFactu framing plus the sample Agencia Tributaria URL makes it distinguishable from generic or other-country QR readers in the sibling list.

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?

It makes clear which input forms are accepted, which implies when to reach for it, and it spells out the access tiers (free 5/day, Radar API key, x402 per-call) so an agent knows what is needed to call it. It never names a sibling or states when a different tool is the better choice, so the guidance remains implied rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources