Skip to main content
Glama

Peppol BIS 3.0 UBL 2.1 XML Invoice Generator API

ubl_peppol_invoice_generator
Read-onlyIdempotent

Generate EN 16931 and Peppol BIS Billing 3.0 compliant UBL 2.1 XML electronic invoices from JSON with automated line-item arithmetic, multi-rate VAT breakdown, and SEPA payment means. Built for EU B2G and B2B e-invoicing compliance. Deterministic, 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/ubl-peppol-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": {
      "buyer": {
        "city": "Paris",
        "name": "Atelier Logistics SAS",
        "vatId": "FR40303265045",
        "street": "12 Rue de Rivoli",
        "postalCode": "75001",
        "countryCode": "FR"
      },
      "lines": [
        {
          "vatRate": 19,
          "quantity": 2,
          "unitPrice": 450,
          "description": "Enterprise Compliance API Plan",
          "vatCategory": "S"
        },
        {
          "vatRate": 19,
          "quantity": 1,
          "unitPrice": 200,
          "description": "Onboarding Setup",
          "vatCategory": "S"
        }
      ],
      "seller": {
        "city": "Berlin",
        "name": "Nordic Treasury GmbH",
        "vatId": "DE123456789",
        "street": "Friedrichstr. 10",
        "postalCode": "10117",
        "countryCode": "DE"
      },
      "dueDate": "2027-01-04",
      "currency": "EUR",
      "issueDate": "2026-12-05",
      "paymentMeans": {
        "bic": "COBADEFFXXX",
        "iban": "DE89370400440532013000"
      },
      "invoiceNumber": "INV-2026-042",
      "buyerReference": "PO-9910"
    },
    "name": "ubl_peppol_invoice_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerNoCustomer details: {name, vatId?, street, city, postalCode, countryCode, endpointId?, endpointScheme?}.
linesNoInvoice line items: [{description, quantity, unitPrice, vatRate, unitCode?, vatCategory?}].
sellerNoSupplier details: {name, vatId, street, city, postalCode, countryCode, endpointId?, endpointScheme?}.
dueDateNoPayment due date in YYYY-MM-DD format.
currencyNo3-letter ISO 4217 currency code (default EUR).EUR
issueDateNoInvoice issue date in YYYY-MM-DD format.
paymentMeansNoOptional SEPA payment details: {iban, bic?, paymentId?}.
invoiceNumberNoUnique invoice identifier (e.g. INV-2026-042).
buyerReferenceNoBuyer reference or Leitweg-ID / PO number (mandatory in Peppol BIS 3.0).
invoiceTypeCodeNoUNCL1001 document type code: 380 (Invoice) or 381 (Credit Note).380

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lines / items
      Added value: +{
      +  "type": "object"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, yet the description still adds real context beyond them: 'Deterministic, zero AI, nothing stored' discloses data-retention behavior, and the free-tier limit of 5 calls/day per IP plus the two auth paths (X-API-Key or x402 per-call payment) are essential preconditions the annotations do not convey. It stops short of describing error behavior or the shape of the returned document, but the safety and access profile is well covered.

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 compliance and capability claims are front-loaded in the first sentence, followed by behavioral guarantees and then access/pricing. It is efficient overall, though the pricing URLs and plan tier detail are denser than an agent strictly needs to select and invoke the tool.

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 10-parameter nested-object tool with no output schema, the description conveys what is produced (UBL 2.1 XML), that computation is deterministic and stateless, and how to authenticate. It does not state how the XML is returned (raw string vs. URL) or warn that fields like buyerReference are mandatory despite zero required parameters in the schema, which is a notable gap for a compliance tool.

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 the baseline is 3 and the schema already documents every parameter including enum values and nested object shapes. The description adds some meaning by noting 'automated line-item arithmetic, multi-rate VAT breakdown, and SEPA payment means', which tells the agent that line totals and VAT grouping are computed rather than supplied, but it does not add format or constraint detail beyond 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 specific verb and resource plus the exact standards targeted: 'Generate EN 16931 and Peppol BIS Billing 3.0 compliant UBL 2.1 XML electronic invoices from JSON'. The format and standard identifiers (UBL 2.1 XML, Peppol BIS 3.0) separate it from a generic invoice_generator or a ZUGFeRD-style sibling without the agent 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 Guidelines3/5

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

'Built for EU B2G and B2B e-invoicing compliance' gives the implied usage context, but there is no explicit when-to-use / when-not-to-use statement and no named alternative for producing a different invoice format. The usage boundary is inferable from the standards named, not stated.

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