Home / MCP Tools / Date Arithmetic (add duration)
Live MCP tooldeveloper

Date Arithmetic (add duration)

Add years/months/weeks/days/hours to an ISO date; month math clamps to end-of-month.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
datestringrequiredISO date YYYY-MM-DD or full datetime
yearsintegeroptionalYears to add (may be negative)
monthsintegeroptionalMonths to add (may be negative)
weeksintegeroptionalWeeks to add (may be negative)
daysintegeroptionalDays to add (may be negative)
hoursintegeroptionalHours to add (may be negative)
minutesintegeroptionalMinutes to add (may be negative)
secondsintegeroptionalSeconds to add (may be negative)

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "date_add", "arguments": {"date": "2026-07-06"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/date_add \
  -H 'Content-Type: application/json' \
  -d '{"date": "2026-07-06"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/date_add from your browser.

Related tools in Developer