Skip to main content
Glama

Build VietQR

vietqr_build
Read-onlyIdempotent

Create VietQR (NAPAS 247) bank-transfer QR payloads from bank details and account number, returning an EMVCo string and CRC with optional PNG; supports amount and sanitized note.

Instructions

Create a VietQR (NAPAS 247) bank-transfer QR payload. Returns the EMVCo string, CRC and optionally a PNG image. Bank accepts BIN (970436), code (VCB) or name (Vietcombank). Amount is integer VND; note is sanitized (no diacritics, max 25 chars).

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": {
      "bank": "<bank>",
      "account": "<account>"
    },
    "name": "vietqr_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankYesBank BIN, code or name, e.g. "VCB", "970436", "Vietcombank"
noteNoTransfer note / purpose
imageNoAlso return a PNG image (base64). Default false.
amountNoAmount in VND (integer). Omit for a static QR.
accountYesBeneficiary account number
additionalDataNoExtra tag 62 sub-fields keyed by two-digit ID, e.g. {"05":"ORDER123"}. Passed through, not interpreted. Use note for 08.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is low, and the description still adds real behavior: it discloses the returned artifacts and the note sanitization (diacritics stripped, 25-char cap), which materially affects input expectations. No auth, rate-limit, or failure-mode info, but nothing here is a read-only generator that needs it.

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?

Three sentences, front-loaded with purpose then return value then constraints; every clause carries information and there is no filler or repetition.

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?

The description covers purpose, output, and the two parameters with non-obvious constraints, which is sufficient for a 6-parameter generator with no output schema. The nested additionalData tag-62 object is left entirely to the schema, a minor gap for an agent constructing sub-fields.

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 3 is the baseline, but the description goes beyond it by stating the amount must be an integer VND and that the note is sanitized and truncated at 25 characters – constraints absent from the schema's "Transfer note / purpose". It also restates the bank BIN/code/name flexibility that the schema already documents.

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?

"Create a VietQR (NAPAS 247) bank-transfer QR payload" pairs a specific verb with a specific resource and adds the output artifact (EMVCo string, CRC, optional PNG). The build-vs-decode/parse split against siblings is obvious from this framing without needing to open another 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?

Usage is implied rather than stated: there is no when-to-use/when-not sentence and no named alternative for the inverse operations (vietqr_decode, vietqr_parse). Conditional hints such as "Omit for a static QR" and the note-sanitization limits do give practical invocation context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.