fiscal-period
Fiscal year, quarter and period for a date: month-aligned or 52/53-week (4-4-5, 4-5-4, 5-4-4) calendars — Maps up to 100 dates to a fiscal year, quarter, period and week for a caller-defined fiscal calendar: a month-aligned year (starts on day 1 of a named month) or a 52/53-week year ending on a given weekday last in or closest to a month end, in a 4-4-5, 4-5-4 or 5-4-4 pattern with the 53rd week appended to the final period; detects 53-week years and checks an asserted fiscal year, quarter or period.
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": {
"type": "<type>",
"yearLabel": "<yearLabel>",
"items": "<items>"
},
"name": "fiscal-period"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| items | Yes | ||
| endRule | No | 52-53-week: last endWeekday in endMonth, or the endWeekday closest to endMonth's last day. | |
| pattern | No | 52-53-week: weeks per period within each quarter. | |
| endMonth | No | 52-53-week: month near whose end the year ends. | |
| yearLabel | Yes | start: the fiscal year is named for the calendar year it begins in. end: for the calendar year it ends in (US federal FY2027 begins 2026-10-01). | |
| endWeekday | No | 52-53-week: weekday the year ends on, 0=Sunday. | |
| startMonth | No | month-aligned: month in which the fiscal year starts, on day 1. |