Utilities
Add or subtract time periods from a date (years, months, days, hours, minutes, seconds)
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/date-adder' \
-H 'Content-Type: application/json' \
-d '{"startDate":"2024-01-15 or 2024-01-15T14:30:00","years":0,"months":0,"days":0,"hours":0,"minutes":0,"seconds":0,"operation":"add","format":"datetime","includeBusinessDays":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/date-adder| Name | Type | Required | Description |
|---|---|---|---|
| startDate | text | Yes | — |
| years | number | No | — |
| months | number | No | — |
| days | number | No | — |
| hours | number | No | — |
| minutes | number |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-date-adder": {
"name": "date-adder",
"description": "Add or subtract time periods from a date (years, months, days, hours, minutes, seconds)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=date-adder",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "date-adder",
"arguments": {
"startDate": "2024-01-15 or 2024-01-15T14:30:00",
"years": 0,
"months": 0,
"days": 0,
"hours": 0,
"minutes": 0,
"seconds": 0,
"operation": "add",
"format": "datetime",
"includeBusinessDays": false
}
}
}Questions or issues? Contact [email protected]
| No |
| — |
| seconds | number | No | — |
| operation | select | No | — |
| format | select | No | — |
| includeBusinessDays | checkbox | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}