calendar_advance
Advance a date by a specified tenor on QuantLib calendars, applying business-day conventions, end-of-month rules, and holiday overrides to return the adjusted date.
Instructions
Advance a date by a tenor on a QuantLib calendar (POST /calendar-advance).
Args:
calendar: engine Calendar enum value.
date: YYYY-MM-DD start date.
tenor_number: number of units; negative shifts backwards.
tenor_unit: engine TimeUnit (Days, Weeks, Months, Years, ...).
convention: engine BusinessDayConvention (Following,
ModifiedFollowing, Preceding, Unadjusted, ...).
end_of_month: apply the end-of-month rule (default False).
calendar_overrides: optional per-request holiday corrections.
summary = {input_date, advanced_date} taken from the engine's response.
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": {
"calendar": "<calendar>",
"date": "<date>",
"tenor_number": "<tenor_number>",
"tenor_unit": "<tenor_unit>",
"convention": "<convention>"
},
"name": "calendar_advance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| calendar | Yes | ||
| convention | Yes | ||
| tenor_unit | Yes | ||
| end_of_month | No | ||
| tenor_number | Yes | ||
| calendar_overrides | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||