Format Currency
format_currencyFormat a number as localized currency (keyless, offline). E.g. amount 1234.5, currency "EUR", locale "de-DE" -> "1.234,50 €". currency is an ISO 4217 code.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": 1234.5,
"locale": "de-DE",
"currency": "EUR"
},
"name": "format_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The monetary amount. | |
| locale | No | BCP-47 locale (default "en-US"), e.g. "de-DE", "ja-JP". | |
| currency | Yes | ISO 4217 code, e.g. "USD", "EUR", "JPY". |