date_window
Clauses give intervals, tools give points: 'not less than 180 nor more than 270 days before X' is a WINDOW, and every date calculator so far answered one bound. You hand event, direction (before|after), min_days, max_days; you get earliest, latest, span_days, bounds inclusive, and the meaning sentence. Inverted bounds are REFUSED named (min_above_max) — we do not silently sort a contract; equal bounds are a single-day window, not an error. Strict ISO event only; dates as arguments, never the wall clock. Free.
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": {
"event": "<event>",
"direction": "<direction>",
"min_days": "<min_days>",
"max_days": "<max_days>"
},
"name": "date_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| max_days | Yes | ||
| min_days | Yes | ||
| direction | Yes |