Skip to main content
Glama

Initialize fiscal calendar

initialize-fiscal-calendar
Idempotent

Set up an entity's fiscal calendar — the one-time step before its first close.

WHEN TO USE:

  • get-fiscal-calendar returns calendar_not_initialized for the entity

  • A 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

NameRequiredDescriptionDefault
noteNoOptional note captured in the audit event
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
closed_throughNoYYYY-MM: the last month already closed in another system. Exclusive with first_open_period.
first_open_periodNoYYYY-MM: the first month these books close (new or cut-over books). Exclusive with closed_through.
fiscal_year_start_monthNoFiscal year start month (default 1, January).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: a second call returns already_initialized, months created closed accept no postings, every open month before the target must be closed in order, and a fiscal-year mismatch on an entity is refused. It also documents the return payload and that the month should be confirmed with the user. Slightly short of 5 only because the audit/permission surface of this one-time mutation is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well structured with front-loaded purpose and a clearly headed decision section; every section earns its place except the PARAMETERS block, which partly restates what the 100%-covered schema already documents (entity_id, note, fiscal_year_start_month). The verbosity is justified by genuine branching complexity, but there is some duplication.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-time mutation with no required parameters and no output schema, the definition supplies triggers, sequencing, the mutually exclusive parameter decision, the return shape, and idempotent re-call behavior. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds substantive meaning: the exclusive either/or relationship between first_open_period and closed_through, worked cutover examples (2026-09-30 balances → '2026-10'), and the graph-wide sharing of fiscal_year_start_month. That is decision logic the schema alone cannot convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus its lifecycle scope: "Set up an entity's fiscal calendar — the one-time step before its first close." It clearly separates this from change-calendar-start (post-hoc moves) and get-fiscal-calendar (reads), so an agent can distinguish it from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger conditions (get-fiscal-calendar returns calendar_not_initialized) and an ordering contract against named siblings: after initialize-chart-of-accounts, before record-opening-balance. It also names the alternative for changing the start later (change-calendar-start), so when-not-to-use is covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.