format_duration
Convert milliseconds to natural Arabic text (e.g., 'ساعتان وخمس دقائق'). Supports locale and numeral system selection.
Instructions
Format a duration in milliseconds as natural Arabic words (e.g. 7500000 -> "ساعتان وخمس دقائق").
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": {
"value": "<value>"
},
"name": "format_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Duration in milliseconds. | |
| locale | No | BCP-47 locale, e.g. 'ar', 'ar-SA', 'en'. Defaults to 'ar'. | |
| numerals | No | Numeral system: 'latn' (1234), 'arab' (Eastern Arabic ١٢٣٤), or 'arabext' (Persian/Urdu ۱۲۳۴). |