currency_format
Format numbers as currency strings for USD or other locales, with customizable decimals for financial calculations.
Instructions
Format a number as USD currency string (or other locale).
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": {
"amount": "<amount>"
},
"name": "currency_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to format | |
| decimals | No | Decimal places (default 2) |