Skip to main content
Glama

Payment QR payload

qr_payload_payment
Read-onlyIdempotent

Build a payment payload: a Pix BR Code (Brazil), a SEPA credit transfer (EPC069-12, euro area), a PayNow (Singapore), PromptPay (Thailand), VietQR (Vietnam) or KHQR (Cambodia) code, EMV merchant-presented with its CRC; a Swiss QR-bill (SIX Swiss Payments Code), a Czech QR Platba (SPD) or a Swish link (Sweden); or a crypto request: Lightning (invoice, LNURL or Lightning Address), XRP, Cardano, Tron, TON or Stellar. Fields depend on the scheme. Pass the result as data to generate_qr_code; use error correction M for SEPA, Swiss QR-bills (which also carry the Swiss cross: use design_qr or the playground for that) and QR Platba.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "scheme": "<scheme>"
    },
    "name": "qr_payload_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bicNosepa: BIC, optional inside the EEA
cityNopix: receiver city, up to 15 characters; khqr: city (default Phnom Penh)
ibanNosepa: IBAN; swiss-qr-bill: CH or LI IBAN or QR-IBAN
memoNostellar: text memo, up to 28 bytes
nameNopix: receiver name (required, up to 25 characters); sepa: beneficiary name (required); paynow: name shown to the payer; swiss-qr-bill: creditor name (required); czech-spd: recipient name; khqr: account holder's name (required)
townNoswiss-qr-bill: creditor town (required)
txidNopix: transaction ID, up to 25 letters and digits
payeeNoswish: Swedish mobile number or 123 business number
proxyNopaynow or promptpay: the mobile number, UEN, national/tax ID or e-wallet ID
tokenNoton: TON (default) or USDT; stellar: XLM (default) or USDC
amountNoAmount in the scheme's currency (BRL, EUR, SGD, THB, whole VND, CHF/EUR, CZK, SEK, KHR/USD) or coin (ADA, TON or USDT, XLM or USDC). Leave out to let the payer choose.
expiryNopaynow: last day the code works; khqr: required with an amount. YYYY-MM-DD
mobileNokhqr: mobile number with country code
pixKeyNopix: CPF, CNPJ, +55 phone, email or random key
schemeYespix (Brazil), sepa (euro credit transfer, EPC069-12), paynow (Singapore), promptpay (Thailand), vietqr (Vietnam), swiss-qr-bill (Swiss QR-bill, SPC 0200), czech-spd (Czech QR Platba), swish (Sweden), khqr (Cambodia, Bakong), or a crypto request: lightning (BOLT 11 invoice, LNURL or Lightning Address), xrp, cardano (CIP-13), tron (plain address), ton, stellar (SEP-0007)
streetNoswiss-qr-bill: creditor street
accountNoczech-spd: Czech IBAN or account number like 19-2000145399/0800
addressNoxrp, cardano, tron, ton, stellar: the wallet address
bankBinNovietqr: the bank's 6-digit BIN
countryNoswiss-qr-bill: creditor 2-letter country code, e.g. CH (required)
dueDateNoczech-spd: due date, YYYY-MM-DD
instantNoczech-spd: ask for an instant payment (PT:IP)
messageNopix or vietqr: message for the payer
requestNolightning: a BOLT 11 invoice (lnbc…), an LNURL (lnurl1…) or a Lightning Address (name@domain)
bakongIdNokhqr: Bakong account ID, name@bank
currencyNoswiss-qr-bill: CHF (default) or EUR; khqr: KHR (default) or USD
editableNopaynow: whether the payer may change the amount (default true)
payableByNoswiss-qr-bill: true to name the payer in the debtor* fields
proxyTypeNopaynow: mobile or uen; promptpay: mobile, id or ewallet
referenceNosepa: structured RF creditor reference; paynow: bill reference; swiss-qr-bill: QR reference (QR-IBAN) or RF creditor reference (IBAN)
billNumberNokhqr: bill number
debtorNameNoswiss-qr-bill: payer's name
debtorTownNoswiss-qr-bill: payer's town
postalCodeNoswiss-qr-bill: creditor postcode (required)
remittanceNosepa: payment reference text, up to 140 characters (not with reference)
accountTypeNovietqr: account (default) or card
billingInfoNoswiss-qr-bill: structured billing information, //S1/…
debtorStreetNoswiss-qr-bill: payer's street
accountNumberNovietqr: account or card number
debtorCountryNoswiss-qr-bill: payer's 2-letter country code
amountEditableNoswish: whether the payer may change the amount
buildingNumberNoswiss-qr-bill: creditor building number
constantSymbolNoczech-spd: constant symbol, up to 10 digits
destinationTagNoxrp: destination tag (the code then holds an X-address)
specificSymbolNoczech-spd: specific symbol, up to 10 digits
variableSymbolNoczech-spd: variable symbol, up to 10 digits
messageEditableNoswish: whether the payer may change the message
debtorPostalCodeNoswiss-qr-bill: payer's postcode
debtorBuildingNumberNoswiss-qr-bill: payer's building number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed39 schema fields changed
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "czech-spd: Czech IBAN or account number like 19-2000145399/0800",
      +  "type": "string"
      +}
    • addedInput schema / properties / address
      Added value: +{
      +  "description": "xrp, cardano, tron, ton, stellar: the wallet address",
      +  "type": "string"
      +}
    • changedInput schema / properties / amount / description
      Previous value: -"Amount in the scheme's currency (BRL, EUR, SGD, THB, or whole VND). Leave out to let the payer choose."New value: +"Amount in the scheme's currency (BRL, EUR, SGD, THB, whole VND, CHF/EUR, CZK, SEK, KHR/USD) or coin (ADA, TON or USDT, XLM or USDC). Leave out to let the payer choose."
    • addedInput schema / properties / amountEditable
      Added value: +{
      +  "description": "swish: whether the payer may change the amount",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / bakongId
      Added value: +{
      +  "description": "khqr: Bakong account ID, name@bank",
      +  "type": "string"
      +}
    • addedInput schema / properties / billNumber
      Added value: +{
      +  "description": "khqr: bill number",
      +  "type": "string"
      +}
    • addedInput schema / properties / billingInfo
      Added value: +{
      +  "description": "swiss-qr-bill: structured billing information, //S1/…",
      +  "type": "string"
      +}
    • addedInput schema / properties / buildingNumber
      Added value: +{
      +  "description": "swiss-qr-bill: creditor building number",
      +  "type": "string"
      +}
    • changedInput schema / properties / city / description
      Previous value: -"pix: receiver city, up to 15 characters"New value: +"pix: receiver city, up to 15 characters; khqr: city (default Phnom Penh)"
    • addedInput schema / properties / constantSymbol
      Added value: +{
      +  "description": "czech-spd: constant symbol, up to 10 digits",
      +  "type": "string"
      +}
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "swiss-qr-bill: creditor 2-letter country code, e.g. CH (required)",
      +  "type": "string"
      +}
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "swiss-qr-bill: CHF (default) or EUR; khqr: KHR (default) or USD",
      +  "enum": [
      +    "CHF",
      +    "EUR",
      +    "KHR",
      +    "USD"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / debtorBuildingNumber
      Added value: +{
      +  "description": "swiss-qr-bill: payer's building number",
      +  "type": "string"
      +}
    • addedInput schema / properties / debtorCountry
      Added value: +{
      +  "description": "swiss-qr-bill: payer's 2-letter country code",
      +  "type": "string"
      +}
    • addedInput schema / properties / debtorName
      Added value: +{
      +  "description": "swiss-qr-bill: payer's name",
      +  "type": "string"
      +}
    • addedInput schema / properties / debtorPostalCode
      Added value: +{
      +  "description": "swiss-qr-bill: payer's postcode",
      +  "type": "string"
      +}
    • addedInput schema / properties / debtorStreet
      Added value: +{
      +  "description": "swiss-qr-bill: payer's street",
      +  "type": "string"
      +}
    • addedInput schema / properties / debtorTown
      Added value: +{
      +  "description": "swiss-qr-bill: payer's town",
      +  "type": "string"
      +}
    • addedInput schema / properties / destinationTag
      Added value: +{
      +  "description": "xrp: destination tag (the code then holds an X-address)",
      +  "type": "string"
      +}
    • addedInput schema / properties / dueDate
      Added value: +{
      +  "description": "czech-spd: due date, YYYY-MM-DD",
      +  "type": "string"
      +}
    • changedInput schema / properties / expiry / description
      Previous value: -"paynow: last day the code works, YYYY-MM-DD"New value: +"paynow: last day the code works; khqr: required with an amount. YYYY-MM-DD"
    • changedInput schema / properties / iban / description
      Previous value: -"sepa: IBAN"New value: +"sepa: IBAN; swiss-qr-bill: CH or LI IBAN or QR-IBAN"
    • addedInput schema / properties / instant
      Added value: +{
      +  "description": "czech-spd: ask for an instant payment (PT:IP)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / memo
      Added value: +{
      +  "description": "stellar: text memo, up to 28 bytes",
      +  "type": "string"
      +}
    • addedInput schema / properties / messageEditable
      Added value: +{
      +  "description": "swish: whether the payer may change the message",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / mobile
      Added value: +{
      +  "description": "khqr: mobile number with country code",
      +  "type": "string"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"pix: receiver name (required, up to 25 characters); sepa: beneficiary name (required); paynow: name shown to the payer"New value: +"pix: receiver name (required, up to 25 characters); sepa: beneficiary name (required); paynow: name shown to the payer; swiss-qr-bill: creditor name (required); czech-spd: recipient name; khqr: account holder's name (required)"
    • addedInput schema / properties / payableBy
      Added value: +{
      +  "description": "swiss-qr-bill: true to name the payer in the debtor* fields",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / payee
      Added value: +{
      +  "description": "swish: Swedish mobile number or 123 business number",
      +  "type": "string"
      +}
    • addedInput schema / properties / postalCode
      Added value: +{
      +  "description": "swiss-qr-bill: creditor postcode (required)",
      +  "type": "string"
      +}
    • changedInput schema / properties / reference / description
      Previous value: -"sepa: structured RF creditor reference; paynow: bill reference"New value: +"sepa: structured RF creditor reference; paynow: bill reference; swiss-qr-bill: QR reference (QR-IBAN) or RF creditor reference (IBAN)"
    • addedInput schema / properties / request
      Added value: +{
      +  "description": "lightning: a BOLT 11 invoice (lnbc…), an LNURL (lnurl1…) or a Lightning Address (name@domain)",
      +  "type": "string"
      +}
    • changedInput schema / properties / scheme / description
      Previous value: -"pix (Brazil), sepa (euro credit transfer, EPC069-12), paynow (Singapore), promptpay (Thailand) or vietqr (Vietnam)"New value: +"pix (Brazil), sepa (euro credit transfer, EPC069-12), paynow (Singapore), promptpay (Thailand), vietqr (Vietnam), swiss-qr-bill (Swiss QR-bill, SPC 0200), czech-spd (Czech QR Platba), swish (Sweden), khqr (Cambodia, Bakong), or a crypto request: lightning (BOLT 11 invoice, LNURL or Lightning Address), xrp, cardano (CIP-13), tron (plain address), ton, stellar (SEP-0007)"
    • changedInput schema / properties / scheme / enum
      Previous value: -[
      -  "pix",
      -  "sepa",
      -  "paynow",
      -  "promptpay",
      -  "vietqr"
      -]New value: +[
      +  "pix",
      +  "sepa",
      +  "paynow",
      +  "promptpay",
      +  "vietqr",
      +  "swiss-qr-bill",
      +  "czech-spd",
      +  "swish",
      +  "khqr",
      +  "lightning",
      +  "xrp",
      +  "cardano",
      +  "tron",
      +  "ton",
      +  "stellar"
      +]
    • addedInput schema / properties / specificSymbol
      Added value: +{
      +  "description": "czech-spd: specific symbol, up to 10 digits",
      +  "type": "string"
      +}
    • addedInput schema / properties / street
      Added value: +{
      +  "description": "swiss-qr-bill: creditor street",
      +  "type": "string"
      +}
    • addedInput schema / properties / token
      Added value: +{
      +  "description": "ton: TON (default) or USDT; stellar: XLM (default) or USDC",
      +  "enum": [
      +    "TON",
      +    "USDT",
      +    "XLM",
      +    "USDC"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / town
      Added value: +{
      +  "description": "swiss-qr-bill: creditor town (required)",
      +  "type": "string"
      +}
    • addedInput schema / properties / variableSymbol
      Added value: +{
      +  "description": "czech-spd: variable symbol, up to 10 digits",
      +  "type": "string"
      +}
  2. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description usefully adds that the tool returns a payload to be fed into generate_qr_code rather than an image, and that Swiss QR-bills need extra handling elsewhere, but it never states the concrete return shape (plain string vs. object carrying the CRC) or any per-scheme validation failures.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening verb+resource is front-loaded and the closing sentence carries genuine operational advice. However, the long mid-sentence enumeration of all fifteen schemes largely restates the `scheme` enum, whose schema description already lists each scheme with its region and standard, so a sizeable portion of the text is duplicated structured data.

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 15-scheme, 49-parameter tool with no output schema, the description covers scheme families, the hand-off to generate_qr_code, and error-correction requirements per scheme. The main remaining gap is the exact returned value format and per-scheme required-field expectations, though the schema's required markers and per-field descriptions partially compensate.

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 description coverage is 100%, so per-field meaning is already documented, and the baseline would be 3. The phrase "Fields depend on the scheme" adds real value by telling the agent that only scheme-relevant parameters apply, which is the key routing rule across 49 fields; amount semantics are also reinforced (omit to let the payer choose).

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?

"Build a payment payload" gives a specific verb and resource, and the enumeration of scheme families (Pix BR Code, SEPA EPC069-12, PayNow, PromptPay, VietQR, KHQR, Swiss QR-bill, QR Platba, Swish, and crypto requests) makes the scope unambiguous. It is clearly separable from siblings like qr_payload_email, qr_payload_wifi and generate_qr_code, which produce other payload types or actual images.

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?

The description gives concrete downstream instructions: pass the result as `data` to generate_qr_code, use design_qr or the playground for the Swiss cross, and use error correction M for SEPA, Swiss QR-bill and QR Platba. It does not explicitly state when to choose a different payload tool (e.g. for non-payment QR data), so it stops short of full alternative routing.

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.