format_relative_time
Formats a date as a relative time in Arabic (e.g., 'three days ago'). Supports customizable reference date, locale, and numeral system.
Instructions
Format a date relative to a base date in Arabic (e.g. three days ago -> "منذ ٣ أيام"). Defaults the base to now.
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": {
"date": "<date>"
},
"name": "format_relative_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base/reference date as ISO 8601 string. Defaults to the current time. | |
| date | Yes | Target date as ISO 8601 string, e.g. '2025-09-20'. | |
| 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 ۱۲۳۴). |