Skip to main content
Glama

Spanish Facturae XSIG Signed Invoice to PDF API

xsig_to_pdf
Read-onlyIdempotent

Unwrap XAdES-signed Spanish Facturae .xsig e-invoices, verify cryptographic digest integrity, extract signer/invoice metadata, and render printable A4 PDF invoices in Spanish or English. Deterministic offline processing, 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.01/call via x402 at https://radarbg.com/x402/xsig-to-pdf.

Input Schema

NameRequiredDescriptionDefault
contentNoRaw XML .xsig signed invoice text. Provide content or fileBase64.
fileNameNoOptional original .xsig filename.
languageNoPDF label language: es or en (default es).es
fileBase64NoBase64-encoded Spanish Facturae .xsig file (max 15 MB).
includePdfNoRender and return a base64-encoded printable A4 PDF.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world, so the safety profile is covered; the description still adds real value with 'deterministic offline processing, zero AI, nothing stored' and concrete rate limits (5 calls/day per IP) plus both auth paths (X-API-Key or x402 at $0.01/call). It does not say what happens when digest verification fails or whether a failed verification still produces a PDF.

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 capability statement is front-loaded in one dense sentence, followed by a short behavioral sentence and one pricing/auth sentence. The pricing sentence is long and URL-heavy but carries genuinely load-bearing commercial constraints, so little is wasted.

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?

For a no-output-schema tool the description covers input limits, verification behavior, rendering output, cost and auth. The remaining gap is the return payload shape — the description never says that metadata extraction and the base64 PDF are returned together or what includePdf=false yields.

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% and all five parameters carry their own descriptions, so the baseline is 3. The description only echoes the language choice already documented in the enum and adds no syntax or interaction detail, such as precedence between content and fileBase64 when both are supplied.

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?

Names a precise multi-step verb chain (unwrap, verify digest, extract metadata, render A4 PDF) on a specific resource: Spanish Facturae .xsig signed e-invoices. The rendering step clearly separates it from the parse-only sibling facturae_xsig_parser, and the language scope (Spanish or English) is stated.

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?

Usage is implied by the enumerated pipeline — an agent can infer this is the tool for turning an .xsig into a PDF — but there is no explicit when-to-use/when-not guidance and no named alternative such as facturae_xsig_parser for metadata-only needs. The pricing and auth details aid invocation rather than tool selection.

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