Get fiscal calendar
get-fiscal-calendarGet the current fiscal calendar state — what period is next to close, what's blocking it.
NEW TO THE CLOSE? Call get-close-playbook first — it lays out the full tool sequence, the schedule-setup decisions, and the gotchas this tool's output assumes you know.
WHEN TO USE:
At the START of every close session — check what period you're working on
Before calling close-period — verify it will succeed (check
closeable_now)To check catch-up state when a user is behind ("close the books — I'm 3 months behind")
PARAMETERS:
entity_id (optional): the entity whose calendar to read; omit for the group parent. Each entity of the group closes on its own calendar
RETURNS:
entity_id: the entity this calendar belongs toclosed_through: latest period actually closed (YYYY-MM) or null if never closedclose_target: the period the user wants closed through (YYYY-MM)gap_periods: number of periods between closed_through and close_targetcatch_up_sequence: ordered list of periods a close run would processcloseable_now: true if the next period can be closed right nowblockers: list of blocker codes if closeable_now is false:sequence_violation: trying to close a non-sequential periodperiod_incomplete: the month hasn't ended yet (current month)sync_stale: QB sync is older than the period endcalendar_not_initialized: fiscal calendar not yet set uppending_obligations: matured schedule obligations not yet promoted (count + sample ride on the response)stranded_obligations: matured obligations already classified but with no drafted closing entry — adjusting entries a close would silently omit (count + sample ride on the response)reconciling_items: posted events whose source payload changed afterwards and that nobody has dispositioned — resolve each with resolve-reconciling-item (count + sample ride on the response)unposted_source_events: source events dated in the period were never committed (inbox lines still captured or classified, or a QuickBooks transaction whose automatic posting failed) and cannot post into it once it closes — commit or void each (count + sample ride on the response)unreconciled_accounts: a reconciliation the close waits on is not reconciled for the period, or was never compared for it — run refresh-reconciliations (count + sample ride on the response)unmapped_accounts: an account with postings through the period that the chart's mapping does not map to a concept, so its balances are in no statement — map it with suggest-mapping and create-mapping-association; nothing lifts this one (count + sample ride on the response)held_bank_lines: bank lines a sync held out of an earlier, closed month (dated there, arriving after it closed) that no close has decided on — reopen that month, which gives them back to post, or close over them with allow_held_bank_lines (count + sample ride on the response)On the consolidation entity, whose close is the group's (each names its items in the matching
group_*list):entity_open— an entity the month consolidates has not closed it;adjustments_unposted— the month's consolidating entries are neither held nor drafted, run propose-consolidation-entries;residual_unexplained— a residual or intercompany disagreement is left;consolidated_does_not_foot— the consolidated balance sheet or equity statement fails its checks
last_sync_at: most recent QB sync timestamp (null if no QB connection)periods: list of all fiscal period rows with status
WORKFLOW:
Call this first to orient yourself
If
closeable_nowis true, proceed with draftingIf blocked by
sync_stale, tell user to sync QB firstIf blocked by
period_incomplete, tell user the month hasn't endedIf blocked by
pending_obligationsorstranded_obligations, run promote-obligations (dispatch_handlers=true) — it reaches both — then re-check 5b. If blocked byreconciling_items, work each with preview-reconciling-item then resolve-reconciling-item, then re-checkIf
gap_periods > 1, the user is behind — acknowledge and plan a catch-up
NOTES: Read-only — safe to call repeatedly, no side effects.
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": "get-fiscal-calendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | The entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent. |