format_number
Format numbers as currency, percentages, or with thousands/decimal separators using locale-specific conventions to ensure consistent data presentation.
Instructions
Format numbers (currency, percentage, thousands separator, decimal)
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": {
"number": "<number>",
"format": "<format>"
},
"name": "format_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Number to format | |
| format | Yes | Format type | |
| locale | No | Locale (default: en-US) | |
| currency | No | Currency code for currency format (default: USD) | |
| minimum_fraction_digits | No | Minimum fraction digits (0-20) | |
| maximum_fraction_digits | No | Maximum fraction digits (0-20) |