Skip to main content
Glama
VietQR MCP Toolkit

VietQR MCP Toolkit

generate_freelance_invoice_html

Generates a standalone, print-ready A4 HTML invoice for freelancers and agencies, including auto-calculated totals and an embedded VietQR payment block.

Instructions

Generate a standalone print-ready A4 HTML freelance/agency invoice with auto-calculated totals and an embedded VietQR payment block.

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": {
      "client_name": "<client_name>",
      "items_json": "<items_json>"
    },
    "name": "generate_freelance_invoice_html"
  }
}

Input Schema

NameRequiredDescriptionDefault
bank_idNoVCB
account_noNo
invoice_noNo
items_jsonYesJSON array string of items, each with description, qty, and unit_price_usd or unit_price_vnd.
client_nameYesClient or company name.
seller_nameNoFreelancer / AI Automation Studio
account_nameNo
usd_to_vnd_rateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose useful traits such as standalone output, A4 print formatting, auto-calculated totals, and an embedded QR block. It does not say whether the HTML is returned as a string or written to a file, nor what happens when bank_id/account_no default to empty — presumably no QR block, but that is left to inference.

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?

A single dense sentence with the artifact, format, and key capabilities front-loaded; no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter generator with no annotations and no output schema, the description is thin: it leaves the return value (HTML string vs. saved file), currency handling, and the bank/account fields that control the QR block undocumented. An agent could form a rough intent but would be guessing on several required inputs.

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 coverage is only 25%, so six of eight parameters (bank_id, account_no, account_name, invoice_no, seller_name, usd_to_vnd_rate) rely on the description for meaning, and it says nothing about them. 'Auto-calculated totals' faintly implies USD/VND conversion, but the conversion-rate parameter and the bank/account fields that drive the QR block are unexplained.

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 and artifact: generating a standalone print-ready A4 HTML invoice with auto-calculated totals and an embedded VietQR block. The output form (an HTML document, not a payment URL or bank list) implicitly separates it from the two siblings, though it never names them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no prerequisites, and no exclusion relative to generate_vietqr_payment_url or list_supported_vietnam_banks. The only contextual hint is the phrase 'freelance/agency invoice', which narrows the domain but doesn't tell the agent when to pick this tool over an alternative.

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