Add Duration
add_durationAdd (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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "2025-01-01T00:00:00Z",
"days": 15,
"months": 6
},
"name": "add_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Base date/time (ISO-8601). | |
| days | No | ||
| hours | No | ||
| weeks | No | ||
| years | No | ||
| months | No | ||
| minutes | No | ||
| seconds | No |