date_relative
Relative-date phrases in human words → exact ISO, EN/FR/PT closed grammar: today/demain/amanha, [this|next|last] , in N days/weeks/months/years, N units ago, start|end of week|month|year, + declared time-of-day map (morning=09:00, tonight=21:00…). now is an ARGUMENT (echoed as now_used): same phrase + same now = same answer forever. ISO-week rules stated in reading_notes; 'this Friday' said on a Friday returns BOTH readings (ambiguity reported, never decided); anything outside the grammar is refused by name — normalizing messy prose to the grammar stays the model's job, the calendar math becomes ours. Answers the #1 complaint of every local-model forum. 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": {
"phrase": "<phrase>"
},
"name": "date_relative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA zone applied to now | |
| now | No | ISO-8601 anchor; omit = current UTC (echoed) | |
| phrase | Yes |