Skip to main content
Glama

Invoice Generator API - JSON to PDF invoice with SEPA pay QR

invoice_generator
Read-onlyIdempotent

Send seller, buyer and line items as JSON, get a clean A4 PDF invoice (base64): number, dates, quantities, prices, VAT %, subtotal/VAT/total, bank details and, for EUR + IBAN, a SEPA QR code that banking apps scan to pay. Unicode (Cyrillic, Greek, accents). No watermark, nothing stored. Runs on our server, < 0.5 s. 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/invoice-generator.

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": {
      "vat": "19",
      "iban": "DE89370400440532013000",
      "buyer": "Client GmbH\nHafen 2, Hamburg",
      "items": [
        {
          "price": 400,
          "quantity": 1,
          "description": "Web design"
        },
        {
          "price": 5,
          "quantity": 12,
          "description": "Hosting (months)"
        }
      ],
      "number": "2026-001",
      "seller": "Example Ltd\nMain St 1, Berlin"
    },
    "name": "invoice_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
bicNoYour BIC
dueNoDue date YYYY-MM-DD
vatNoVAT percent, e.g. 20
dateNoYYYY-MM-DD (default today)
ibanNoYour IBAN (adds bank details + SEPA pay QR)
buyerNoCustomer name and address
itemsYesLines: [{description, quantity, price}]
notesNoFooter notes, e.g. payment terms
titleNoHeading, default INVOICE
numberNoInvoice number
sellerNoYour name and address (new lines allowed)
currencyNo3-letter currency, default EUR

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent; the description goes well beyond them with 'nothing stored', 'no watermark', sub-0.5s latency, per-IP rate limits, and the two auth/payment mechanisms including a concrete header name (X-API-Key). The 'nothing stored' claim is consistent with readOnlyHint=true and the deterministic output with idempotentHint=true.

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?

Dense but front-loaded: output shape first, then conditional QR behavior, then operational facts. The pricing URL and per-call cost are justified because they define access, though the paragraph reads as one unbroken block rather than separated concerns.

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?

For a 12-parameter generator with no output schema, the description covers everything an agent needs: return format (base64 A4 PDF), what the payload renders, the EUR+IBAN conditional, storage/watermark guarantees, speed, and quota/auth mechanics.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds linkage the schema does not spell out: the SEPA QR appears only when currency is EUR and an IBAN is supplied, and Unicode content (Cyrillic, Greek, accents) is handled correctly. It does not add format detail for date/due/currency beyond what the schema already says.

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?

States a concrete input/output contract: 'Send seller, buyer and line items as JSON, get a clean A4 PDF invoice (base64)' and enumerates the rendered fields. That is enough to separate it from sepa_xml (XML output), e_invoice_reader (parsing existing invoices) and qr_code_generator (standalone QR) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Use context is clear: JSON in, finished PDF invoice out, with the QR path called out as conditional on EUR + IBAN. It also gives the access conditions (5 free calls/day per IP, paid key, or x402). It stops short of explicit exclusions or naming sibling tools for the XML/e-invoice cases, so it is a clear 4 rather than a 5.

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