Roll to a business day
roll_dateStay on date when it is already a business day. Otherwise move to the nearest business day in direction next or previous. This is not Excel WORKDAY, and it does not decide whether a filing is timely. Omit calendar for us-federal-opm.
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": {
"date": "<date>",
"direction": "<direction>"
},
"name": "roll_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Civil date, YYYY-MM-DD. Not a timestamp. | |
| calendar | No | Calendar id. Omit for us-federal-opm. Unknown ids are an error. us-fed-banking keeps Reserve Banks open on the Friday before a Saturday holiday. us-nyse is NYSE full-day holidays for 2026 through 2028. us-sifma is SIFMA recommended U.S. full closes for 2026 and 2027. An early close stays open. us-ca is California state offices for 2026. A Saturday holiday does not close Friday. us-ny is New York State executive-branch offices for 2026 and 2027. A floating holiday stays open. us-nyc is New York City offices for 2026 and 2027. A Saturday holiday closes Friday. | |
| direction | Yes | next walks forward. previous walks backward. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | date | |
| reason | Yes | reason | |
| result | Yes | result | |
| rolled | Yes | rolled | |
| sources | Yes | sources | |
| calendar | Yes | calendar | |
| direction | Yes | direction | |
| disclaimer | Yes | disclaimer |