Skip to main content
Glama

Swiss QR-Bill Reader & Parser API - SPC 0200

swiss_qr_bill_reader
Read-onlyIdempotent

Decode and validate Swiss ISO 20022 QR-Bill (QR-Rechnung / SPC 0200) payment slips from PDF invoices, PNG/JPEG scans, or raw SPC text payloads into structured JSON: creditor, debtor, QR-IBAN/IBAN, amount, currency, QRR Mod-10 and SCOR ISO-11649 checksum verification. 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.005/call via x402 at https://radarbg.com/x402/swiss-qr-bill-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": "SPC\r\n0200\r\n1\r\nCH4431999123000889012\r\nS\r\nRobert Schneider AG\r\nRue du Lac\r\n1268\r\n2501\r\nBiel\r\nCH\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n1949.75\r\nCHF\r\nS\r\nPia-Maria Rutschmann-Schnyder\r\nGrosse Marktgasse\r\n28\r\n9400\r\nRorschach\r\nCH\r\nQRR\r\n210000000003139471430009017\r\nOrder of 15 Nov 2026 — Consulting Services\r\nEPD\r\n//S1/10/10201409/11/261115/20/1400.000-53/30/106017086/31/261115/32/8.1/40/0:30\r\n"
    },
    "name": "swiss_qr_bill_reader"
  }
}

Input Schema

NameRequiredDescriptionDefault
qrTextNoRaw Swiss Payment Code (SPC 0200) newline-delimited QR text string. Provide qrText or fileBase64.
fileNameNoOptional original filename.
fileBase64NoBase64-encoded Swiss QR-Bill PDF, PNG, JPEG, or SPC text file (max 15 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses determinism and 'zero AI', that nothing is stored, the free tier limit of 5 calls/day per IP, and both auth paths (X-API-Key or x402 per-call payment). Auth requirements and rate limits are exactly the behavioral context annotations cannot carry.

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?

Purpose is front-loaded in the first sentence, followed by verifiable behavior and then commercial details. The pricing and URL clause is dense and slightly long, but every element carries real information for the calling agent.

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?

With no output schema, the description compensates by enumerating returned fields (creditor, debtor, QR-IBAN/IBAN, amount, currency, checksum results). What remains unstated is error/failure behavior for unreadable scans or invalid checksums, a notable gap for a parsing 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 qrText, fileName and fileBase64 are already documented, including the 15 MB cap and the 'provide qrText or fileBase64' choice. The description restates the same accepted formats without adding format/syntax detail beyond the schema, so the baseline of 3 applies.

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 pair ('Decode and validate'), the exact resource ('Swiss ISO 20022 QR-Bill / SPC 0200 payment slips'), the accepted inputs, and the output shape. The SPC 0200 and QRR/SCOR specificity clearly separates it from a generic qr_code_reader or e_invoice_reader sibling.

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 input types (PDF invoice, PNG/JPEG scan, raw SPC text), so an agent can infer when it applies. There is no explicit when-not guidance or naming of an alternative (e.g. generic QR reader or Swiss QR generator), which leaves routing to the sibling tools to inference.

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