calculate_date
Calculate the difference between two dates, or add/subtract days from a date.
Operations:
"difference": days between start_date and end_date (end_date required).
"add": the date
daysdays after start_date."subtract": the date
daysdays before start_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>",
"start_date": "<start_date>"
},
"name": "calculate_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to add or subtract (only for "add"/"subtract"). | |
| end_date | No | Second date in ISO format (only for "difference"). | |
| operation | Yes | One of "difference", "add", "subtract". | |
| start_date | Yes | Base date in ISO format, e.g. "2026-07-13". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||