Date calculator
hopi_date_calculatorAdd or subtract a number of days, weeks, months or years from a date. Dates use the YYYY-MM-DD format. Months and years are clamped to the last day of the target month where needed. Returns the resulting date. Source: https://hopi.co.uk/date-calculator/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>",
"amount": "<amount>"
},
"name": "hopi_date_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Start date in YYYY-MM-DD format | |
| unit | No | Unit to move by (default 'days') | days |
| amount | Yes | How many units to move (0 to 100000) | |
| direction | No | 'add' to move forwards, 'subtract' to move backwards (default 'add') | add |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| unit | Yes | ||
| amount | Yes | ||
| result | Yes | ||
| summary | Yes | ||
| weekday | Yes | ||
| direction | Yes | ||
| resultLong | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |