Currency Format
currency_formatMoney formatting and math with CLDR data (ICU 78 / CLDR 48, matches Intl.NumberFormat): format an amount for any of 60 locales and 154 active ISO 4217 currencies (symbol, narrow symbol or code; standard or accounting negatives; Indian lakh grouping, Swiss apostrophes, RTL marks), round with 9 modes or cash rounding (CHF 0.05), parse a formatted string such as "1.234,56 €" or "(US$1,234.50)" back to an exact amount and currency, split an amount by ratios without losing a cent (largest remainder) and look up currency or country info (digits, symbols, cash rounding, countries). Exact decimal arithmetic, no floats. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/currency-format
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "currency_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash | No | Use cash rounding (CHF/CAD 0.05, DKK 0.50) | |
| mode | No | format | |
| sign | No | standard | |
| text | No | parse: the formatted money string | |
| amount | No | Decimal amount, e.g. 1234.5 or -0.005 (format / allocate) | |
| digits | No | Override the currency's fraction digits | |
| locale | No | en-US, de-DE, fr-CH, ja-JP, hi-IN ... or just a language | en-US |
| ratios | No | allocate: weights, e.g. 1,1,1 or 50,30,20 | |
| country | No | ISO 3166 country: use its currency (info: list it) | |
| display | No | symbol | |
| currency | No | ISO 4217 code (default: the locale's country currency) | |
| rounding | No | halfExpand |