Skip to main content
Glama

Set invoice payment QR codes

set_invoice_qr
DestructiveIdempotent

Turns the payment QR codes (UPN, EPC) of an invoice draft or an open proforma on or off and sets the payment description and the purpose code. The settings are replaced as a whole: a QR code that is not given is turned off. The codes pay to the bank account of the document. Nothing is issued. Issued documents can't be changed.

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": {
      "company_id": "<company_id>",
      "invoice_id": "<invoice_id>"
    },
    "name": "set_invoice_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
epcNotrue: print the EPC QR code (SEPA credit transfer); off when not given.
upnNotrue: print the UPN QR code (Slovenian payment order); off when not given.
codeNoThe SEPA purpose code of the payment; GDSV (purchase of goods and services) when not given.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the document, from list_invoices.
payment_descriptionNoThe payment description in the QR codes (one line); required when a QR code is on. {invoice_number} is replaced by the number of the document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining the destructiveHint=true semantics concretely: 'The settings are replaced as a whole: a QR code that is not given is turned off', so the agent knows omitting a flag silently removes it. It also discloses that no document is issued, that issued documents are immutable, and that the codes target the document's own bank account.

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

Conciseness5/5

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

Four short sentences, front-loaded with the action, followed by the replacement rule, the payment target, and the immutability constraint. No filler and no repeated annotation 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 6-parameter mutation with no output schema, it covers eligibility, replacement semantics, and side effects (nothing is issued). It leaves minor gaps, such as what the call returns and whether existing bank account/payment integration configuration is a precondition.

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 per-parameter meaning is already documented (including 'off when not given' and the {invoice_number} placeholder). The description adds the whole-object replacement rule, which frames the flags as a complete settings snapshot rather than independent toggles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('turns ... on or off') plus the exact resource ('payment QR codes (UPN, EPC)') and narrows scope to 'an invoice draft or an open proforma'. An agent can tell this is a QR/payment-code configuration tool rather than a general invoice editor or issuer, though it does not name a sibling alternative.

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?

Explicit eligibility ('invoice draft or an open proforma') and an explicit exclusion ('Issued documents can't be changed'), plus 'Nothing is issued' to reassure it does not finalize the document. It stops short of naming the alternative tool to use when the document is already issued or when only bank details need changing.

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