Convert a date (Jalali / Gregorian)
convert_dateConvert dates between Jalali (Persian) and Gregorian calendars using a single YYYY-MM-DD or YYYY/MM/DD value.
Instructions
Convert a date between the Jalali (Persian) and Gregorian calendars.
Args: value: Gregorian YYYY-MM-DD or Jalali YYYY/MM/DD (Persian digits are fine; any year below 1700 is Jalali).
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": "convert_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jalali | Yes | The day, Jalali YYYY/MM/DD. | |
| holidays | Yes | Official holidays on this day, if any. | |
| gregorian | Yes | The day, Gregorian (ISO 8601). | |
| is_friday | Yes | Friday, the weekly day off. | |
| is_day_off | Yes | A Friday or an official holiday. | |
| weekday_en | Yes | English weekday. | |
| weekday_fa | Yes | Persian weekday. |