parse_number
Parse strings containing Latin or Eastern Arabic digits with Arabic grouping and decimal separators into a JavaScript number.
Instructions
Parse a string containing Latin or Eastern Arabic digits (with Arabic grouping/decimal separators) into a JavaScript number (e.g. "١٬٢٣٤٫٥٦" -> 1234.56). Returns the number as a string.
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": {
"input": "<input>"
},
"name": "parse_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The numeric string to parse, e.g. '١٬٢٣٤٫٥٦' or '1,234.56'. |