Initialize fiscal calendar
initialize-fiscal-calendarSet up an entity's fiscal calendar — the one-time step before its first close.
WHEN TO USE:
get-fiscal-calendar returns
calendar_not_initializedfor the entityA new subsidiary (create-entity) is about to keep books: after its chart (initialize-chart-of-accounts), before recording its opening balance
THE DECISION — pass exactly one (ask the user if it is not clear):
first_open_period: the first month THESE books will close. Every month from it through the current month is created open, and the first close is that month. Use for new books, and for books cut over from another system at a month-end: the books start the month after the cutover, and the balance sheet on the cutover date is recorded with record-opening-balance, which dates it the day before the first month (e.g. balances as of 2026-09-30 → first_open_period '2026-10'). Never earlier than needed: every open month before the one you want to close must be closed first, in order.closed_through: the last month already closed ELSEWHERE (QuickBooks, a prior system). Months on or before it are created closed — nothing can post into them — and the first close is the month after. Use when history is already in the ledger and was closed outside RoboLedger.
PARAMETERS:
entity_id (optional): the entity whose calendar to set up; omit for the group parent. Each entity keeps its own calendar
first_open_period / closed_through: YYYY-MM, exactly one (above)
fiscal_year_start_month (optional, 1-12, default 1): every entity of a graph shares the group's month; a mismatch is refused
note (optional): kept on the audit event
RETURNS: the new calendar (same shape as get-fiscal-calendar) and
periods_created.
NOTES: One-time — a second call returns already_initialized with the
existing calendar. To move the start afterwards, before the first close, use
change-calendar-start. Confirm the month with the user before calling.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "initialize-fiscal-calendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional note captured in the audit event | |
| entity_id | No | The entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent. | |
| closed_through | No | YYYY-MM: the last month already closed in another system. Exclusive with first_open_period. | |
| first_open_period | No | YYYY-MM: the first month these books close (new or cut-over books). Exclusive with closed_through. | |
| fiscal_year_start_month | No | Fiscal year start month (default 1, January). |