format_currency
Format numeric amounts into locale-aware currency strings with correct symbol placement and separators, ready for invoices or prices.
Instructions
USE THIS to format a money amount the way a reader in a locale expects (symbol position, separators) before showing it in a price, invoice or email. e.g. 1234.5 GBP en-GB → '£1,234.50'.
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": "format_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The numeric amount. | |
| currency | No | ISO 4217 currency code (default GBP). | |
| locale | No | BCP-47 locale (e.g. en-GB). Defaults from the currency. |