Format Rupiah
format_rupiahMemformat angka sebagai Rupiah gaya Indonesia. Formats a number as Rupiah: "Rp1.234.567,89" (dot thousands, comma decimals), with or without "Rp", fixed decimals, ",-" suffix, or compact like "Rp1,2 jt" / "Rp1,2 juta".
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": {
"angka": "<angka>"
},
"name": "format_rupiah"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angka | Yes | A JSON number, or text such as "1250000", "Rp1.250.000,50" or "1,5 jt". Send very large numbers (>= 2^53) as text. | |
| spasi | No | Space after Rp ("Rp 1.000"). Indonesian spelling rules (EYD) write it without a space. | |
| simbol | No | Prefix "Rp". | |
| desimal | No | Decimals 0-4, or "auto" (default: 0 for whole numbers, else 2). Rounds half up. | |
| ringkas | No | Compact: rb / jt / M / T (e.g. "Rp1,2 jt"). | |
| akhiran_strip | No | Add ",-" (e.g. "Rp1.000,-"); only with 0 decimals. | |
| ringkas_desimal | No | Max decimals in compact mode (trailing zeros dropped). | |
| ringkas_panjang | No | Compact with full words: ribu / juta / miliar / triliun. |