Subtract calendar days from a date
subtract_daysThe date N whole calendar days before a date (exclusive counting: the start date is day 0). Omit date for today in tz. For working days use business_days; for the gap between two dates use days_between.
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": {
"days": "<days>"
},
"name": "subtract_days"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA timezone that defines "today" (e.g. Africa/Kampala). Default UTC. | UTC |
| date | No | ISO date YYYY-MM-DD, or "today" (resolved in tz) | today |
| days | Yes | Whole calendar days to subtract. Negative counts forwards. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The calculated answer (kind-discriminated) | |
| receipt | Yes | Auditable receipt: inputs, timezone, convention, workweek, holiday calendar, exclusions, versions, stable result ID |