Skip to main content
Glama

Reopen period

reopen-period
Destructive

Reopen a closed fiscal period so adjustments can be made.

WHEN TO USE:

  • A missed entry was discovered after a period was closed

  • A correcting entry is needed for a prior period adjustment

  • The user wants to re-run the close workflow for a closed period

NOTES:

  1. Transitions FiscalPeriod from 'closed' → 'closing' (drafts may still exist)

  2. Only the latest closed period (closed_through) can be reopened; closed_through retreats one month

  3. Retracts the month's canonical statement FactSets (a reopened month is no longer a closed assertion; re-closing restamps them fresh)

  4. Does NOT modify close_target — that's a separate user decision

  5. Does NOT modify existing posted entries — they stay posted

  6. Emits a period_reopened audit event with the required reason

  • Period must be in 'closed' status (422 otherwise)

  • Reason must be non-empty (422 otherwise)

  • Posted entries stay posted. To "undo" a posted entry, create a reversing entry via create-event-block(event_type='journal_entry_recorded', metadata.type='reversing'), or reopen + correct + re-close.

  • To reach an earlier month: reopen latest-first, one month at a time, down to the target (each with its own reason), make the fix, then close-period forward. An out-of-order reopen is refused (error=reopen_order) with the ordered list — every later closed month carries statements stamped from the earlier month's numbers, and a reopen would leave those stamps outliving the numbers.

PARAMETERS:

  • period (required): YYYY-MM format

  • reason (required): Why the reopen is needed — captured in the audit log

  • entity_id (optional): the entity whose period to reopen; omit for the group parent

RETURNS:

  • Updated fiscal_calendar state

  • statement_sets_retracted: how many canonical statement FactSets the reopen deleted (0 for months whose statement sets were never stamped)

  • held_bank_lines_restored: bank lines a sync held out of the month while it was closed, given back as captured to classify and commit

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": {
      "period": "<period>",
      "reason": "<reason>"
    },
    "name": "reopen-period"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional additional note
periodYesPeriod to reopen in YYYY-MM format
reasonYesRequired reason for the reopen (captured in audit log)
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description quantifies the destruction ('statement_sets_retracted: how many canonical statement FactSets the reopen deleted'), clarifies what is NOT touched (close_target, posted entries), and notes the emitted period_reopened audit event. This is well beyond what the annotations convey.

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?

Headers (WHEN TO USE / NOTES / PARAMETERS / RETURNS) front-load the trigger and keep a dense definition navigable. Minor redundancy: 'posted entries stay posted' appears both as note 5 and again in the failure bullets, and the ordering rationale is stated at greater length than needed.

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 destructive, multi-step mutation with no output schema, the definition supplies the full picture: state transitions, what is retracted or restored, ordering constraints, error conditions, and an explicit RETURNS section. An agent has everything needed to call it correctly or route elsewhere.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all four parameters, and the description largely restates them (YYYY-MM format, audit-captured reason, omit entity_id for the group parent). It adds only marginal nuance and omits the optional `note` parameter entirely, so it does not improve on the structured data.

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?

States a specific verb and resource ('Reopen a closed fiscal period') plus the immediate goal ('so adjustments can be made'). The transition from 'closed' to 'closing' and the `closed_through` retreat make it unmistakable versus close-period or a generic update tool.

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?

A dedicated WHEN TO USE block enumerates three concrete triggers, and the notes name alternatives explicitly: a reversing entry via create-event-block for undoing a posted entry, and reopen-latest-first sequencing to reach an earlier month. Failure conditions (422 on non-closed status or empty reason, reopen_order refusal) are spelled out.

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.