format_currency
Format an amount as currency.
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 | Amount to format | |
| locale | No | Locale for formatting | en-US |
| currency | No | Currency code (USD, EUR, GBP, etc.) | USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| symbol | Yes | ||
| currency | Yes | ||
| decimals | Yes | ||
| formatted | Yes |