Skip to main content
Glama
@salbot/kiotviet-mcp-server

@salbot/kiotviet-mcp-server

by SalBot-Labs

kiotviet_generate_payment_qr

Create a payment QR for an exact amount and receiving account. Generating it does not confirm payment, so check the QR status afterward.

Instructions

Generate payment QR for an exact amount and receiving account. Each call can create a new QR even with the same orderCode. Generating a QR does not prove payment; use get_qr_status afterward.

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": {
      "data": "<data>"
    },
    "name": "kiotviet_generate_payment_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=true; the description usefully explains the consequence of non-idempotency (same orderCode yields another QR) and clarifies that QR creation is not payment confirmation. It omits auth/permission prerequisites, whether the QR expires, and what the call actually returns (payload/image/URL) despite there being no output schema.

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 short sentences, front-loaded with the action, then the retry caveat, then the follow-up tool. No redundant restatement of the tool name or schema.

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?

Covers the two riskiest agent behaviors (blind retries, assuming payment) for a non-idempotent write tool with no output schema. Remaining gap is the return value and account/bank prerequisites, which an agent needs to chain into kiotviet_get_qr_status.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% at the parameter level, and the nested `data` object holds eight fields of which only qrType and orderCode carry inline descriptions. The description adds no per-field meaning — bankCode/branchId pairing, documentId's role, description field usage, amount bounds — so it fails to compensate for the coverage gap. Baseline is low here, not 3.

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?

Specific verb + resource + scope: "Generate payment QR for an exact amount and receiving account." An agent can tell this is QR issuance rather than invoice/order creation. It stops short of naming the closest alternative (kiotviet_create_invoice_payment), so it does not fully separate itself from siblings.

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?

Gives a concrete follow-up rule ("use get_qr_status afterward") and a retry warning tied to orderCode reuse. It lacks an explicit when-not-use statement, e.g. when to prefer create_invoice_payment over generating a raw QR.

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

Deploy Server

Other Tools