date_calculator
Calculate date differences, or add and subtract days from a given date. Provides precise results using YYYY-MM-DD format.
Instructions
Calculate the difference between two dates, or add/subtract days from a date.
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": {
"operation": "<operation>",
"date1": "<date1>"
},
"name": "date_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to add or subtract. Required for "add" or "subtract". | |
| date1 | Yes | The starting date, in YYYY-MM-DD format. | |
| date2 | No | The second date, in YYYY-MM-DD format. Required for "difference". | |
| operation | Yes | One of "difference", "add", or "subtract". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |