date-past
Generates a random past date using a reference date and an optional year range, useful for creating historical test data or backdated records.
Instructions
Generates a random date in the past.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "date-past"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | The range of years the date may be in the past. | |
| refDate | No | The date to use as reference point for the newly generated date. |