Write a number in words
number_to_wordsWrite a number in Vietnamese and English words, for an invoice or a receipt: 1.250.000 becomes "một triệu hai trăm năm mươi nghìn" and "one million two hundred fifty thousand". A dot or comma before exactly three digits groups thousands (1.250, 12,500); before other digits it is the decimal mark (12,5 or 2.75). Free; the Vietnamese money line is included.
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": {
"number": "<number>"
},
"name": "number_to_words"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chan | No | End a whole money line with "chẵn". Default true. | |
| four | No | Read 24 as "hai mươi tư" (tu) or "hai mươi bốn" (bon). | tu |
| zero | No | The word for a missing tens digit: "linh" or "lẻ". | linh |
| money | No | Include the Vietnamese money line (đồng). Default true. | |
| number | Yes | The number to read, like "1.250.000", "1250000" or "12,5". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| money | Yes | ||
| english | Yes | ||
| vietnamese | Yes |