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

NameTypeRequiredDescription
datestringyesBase date/time (ISO-8601).
yearsnumberno
monthsnumberno
weeksnumberno
daysnumberno
hoursnumberno
minutesnumberno
secondsnumberno

Example call

Arguments

{
  "date": "2025-01-01T00:00:00Z",
  "months": 6,
  "days": 15
}

curl

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":{"date":"2025-01-01T00:00:00Z","months":6,"days":15}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('add_duration', {
  "date": "2025-01-01T00:00:00Z",
  "months": 6,
  "days": 15
});

More examples

{
  "date": "2025-06-30",
  "years": 1,
  "hours": -3
}

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.

Regenerated from source · build August 15, 2026