Skip to main content
Glama

Change calendar start

change-calendar-start
DestructiveIdempotent

Move where an entity's fiscal calendar starts — allowed only before its first close.

WHEN TO USE:

  • Bank-feed or imported history predates the calendar's first month: its lines can only post through a close of their month, so the calendar has to reach back to them. Move the start earlier, then close forward in order

  • The calendar was set up starting too early and its leading months are empty: move the start later

PARAMETERS:

  • first_open_period (required): YYYY-MM, the new first month (open)

  • entity_id (optional): the entity whose calendar to move; omit for the group parent

  • note (optional): kept on the audit event

RETURNS: the calendar (same shape as get-fiscal-calendar) with periods_created and periods_removed.

NOTES:

  • Earlier adds open months from first_open_period up to the current start; later removes the leading months before it, refused when they hold any journal entry (drafts included) or unposted source line. Each move records a start_changed audit event

  • Refused once any month of the calendar has closed (calendar_start_locked — history behind the close boundary is reopen-period territory, or is compiled as plan history), when moving later would drop activity (calendar_start_blocked, with the counts), and for a future month (invalid_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": {
      "first_open_period": "<first_open_period>"
    },
    "name": "change-calendar-start"
  }
}

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.
first_open_periodYesYYYY-MM: the new first month of the calendar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes well beyond them: it explains what earlier vs later actually adds or removes, that removal is refused when leading months hold journal entries (drafts included) or unposted source lines, that each move emits a start_changed audit event, and it names the specific failure codes (calendar_start_locked, calendar_start_blocked with counts, invalid_period).

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, bullets, and a front-loaded one-line gist make it fast to scan, and RETURN/NOTES earn their space. Mild redundancy exists because the PARAMETERS block largely repeats the fully-described schema, but nothing is dangerously padded.

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 mutation with no output schema, the definition covers preconditions, direction-dependent effects, failure modes with error codes, audit side effects, and the return shape (calendar plus periods_created/periods_removed). An agent has everything needed to call it correctly or avoid calling it.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by clarifying that first_open_period is the new *open* month and by explaining the omit-for-group-parent semantics of entity_id. The note parameter is simply restated from the schema, which keeps this from a 5.

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?

The opening sentence gives a precise verb and resource ('Move where an entity's fiscal calendar starts') plus its boundary condition ('allowed only before its first close'). This is unmistakably distinct from initializing a calendar or reopening a period, so an agent can route correctly without opening the schema.

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 gives two concrete triggering scenarios (bank-feed history predating the first month; leading months empty) with the follow-up action in each case. The NOTE section also supplies the when-not side, steering closed-boundary cases toward reopen-period.

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.