add_duration
Pack: datecalc · Endpoint: https://gateway.pipeworx.io/datecalc/mcp
Add (or subtract, with negatives) a duration to a date and return the new UTC date/time. Provide any of years/months/weeks/days/hours/minutes/seconds.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
date | string | yes | Base date/time (ISO-8601). |
years | number | no | |
months | number | no | |
weeks | number | no | |
days | number | no | |
hours | number | no | |
minutes | number | no | |
seconds | number | no |
Example call
curl -X POST https://gateway.pipeworx.io/datecalc/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_duration","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"datecalc": {
"url": "https://gateway.pipeworx.io/datecalc/mcp"
}
}
}
See Getting Started for client-specific install steps.