Skip to main content
Glama

Parse VietQR

vietqr_parse
Read-onlyIdempotent

Decode a VietQR or EMVCo QR payload to extract bank, account, amount, note, and CRC validity for payment verification.

Instructions

Decode a VietQR / EMVCo QR payload string: bank, account, amount, note, and whether the CRC is valid.

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": {
      "payload": "<payload>"
    },
    "name": "vietqr_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesThe decoded QR text, starting with 000201

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value on top by disclosing that the tool extracts a specific field set and reports CRC validity rather than throwing on a malformed checksum. It does not say what happens on a structurally invalid payload, which is the only notable gap.

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?

One sentence, front-loaded with the verb and resource, then the return fields. No filler, no restatement of the title, nothing that could be cut.

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 single-parameter, read-only parser with no output schema, the description does the important remaining work: it enumerates the returned fields and flags the CRC validity output. An agent could call it correctly from this. Only the error/failure mode for non-EMVCo input is left unstated.

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% and the single parameter is documented there, including the '000201' prefix hint, so the description adds essentially no format or syntax detail beyond it. Baseline 3 applies when the schema carries the parameter burden.

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?

The description gives a specific verb ('Decode') and resource ('a VietQR / EMVCo QR payload string') and enumerates what comes back (bank, account, amount, note, CRC validity), so an agent knows exactly what the tool produces. It does not distinguish itself from the similarly named vietqr_decode sibling, which keeps it from a 5.

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 only implied: the agent can infer this applies when it already holds a QR payload string, but there is no explicit when-to-use, when-not-to-use, or alternative named. Nothing is misleading, but the agent must reason about selection on its own.

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