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 €9/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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: no watermark, nothing stored server-side, sub-0.5s server-side execution, Unicode support for Cyrillic/Greek/accents, and the conditional SEPA QR that appears only for EUR + IBAN. The rate limit and auth paths are disclosed up front, which the readOnly/openWorld annotations alone would not convey.

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?

Front-loaded with the core transformation in the first clause, then output contents, then constraints and access tiers. Dense but nearly every clause carries actionable information; the pricing link and x402 URL are the only mildly expendable elements.

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 tool with only one required field and no output schema, the description still tells the agent the return type (base64 PDF), the page format (A4), and which fields are computed versus supplied. An agent has everything needed to call it correctly on the first attempt.

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 the baseline is 3, but the description adds meaning the schema does not: that iban triggers bank details plus a scannable SEPA QR (and only for EUR), and that the output computes subtotal/VAT/total from items. Remaining params (title, notes, due, bic) are only covered by the schema.

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 precise input-to-output transformation: JSON (seller, buyer, line items) in, A4 PDF invoice as base64 out. The resource is unambiguous enough to separate it from siblings like e_invoice_reader (which reads existing invoices) or sepa_xml without needing to name them.

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?

Gives concrete invocation context: free tier of 5 calls/day per IP, paid via X-API-Key or $0.005/call via x402, with links to both. It does not state when NOT to use this versus alternatives (e.g. e_invoice_reader for extracting data from an existing invoice), so it falls short of explicit routing guidance.

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