date_diff
Calculate the difference between two dates in days, weeks, months, and years; omit the end date to compare against today.
Instructions
Calculate the difference between two dates. Returns the difference in days, weeks, months, and years.
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": {
"start_date": "<start_date>"
},
"name": "date_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date in ISO format (YYYY-MM-DD) or DD/MM/YYYY format. If omitted, uses current date. | |
| start_date | Yes | Start date in ISO format (YYYY-MM-DD) or DD/MM/YYYY format |