Skip to main content
Glama

Record opening balance

record-opening-balance
DestructiveIdempotent

Record the balance sheet an entity's books start from, when its history does not come with them: one balance per balance-sheet account (assets, liabilities, equity), in cents, debit or credit in the account's normal direction. It posts as one opening entry dated the day before the entity's first fiscal month, so every month's opening balances include it and no month's activity does: the cash flow and the equity statement start from it rather than counting it. Name the equity account that takes any difference between debits and credits (equity_element_id, usually Opening Balance Equity); unbalanced balances without one are refused, and an income or expense account is refused, since income before the books begin is in retained earnings. One per entity: recording it again replaces it, until the entity's first close, after which a correction is an adjusting entry in an open month. Set up the fiscal calendar first; moving its start (change-calendar-start) moves the opening with it.

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": {
      "balances": "<balances>"
    },
    "name": "record-opening-balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoThe entry's memo; defaults to 'Opening balances'.
balancesYesOne balance per balance-sheet account (assets, liabilities, equity). An income or expense account is refused: income before the books begin is already in retained earnings.
entity_idNoThe entity whose books start here; omit for the group parent.
equity_element_idNoThe equity account that takes any difference between debits and credits, usually Opening Balance Equity. Required when the balances do not balance; a non-zero balance left there is a review item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark this as destructive and idempotent, but the description adds real behavioral context beyond them: the entry is dated the day before the first fiscal month so no month's activity includes it, it feeds cash flow and the equity statement as a starting point, and unbalanced input without an equity account is refused. The replacement-until-first-close rule is consistent with idempotentHint=true and destructiveHint=true, so there is no contradiction.

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?

It is a single dense paragraph, but front-loaded with the purpose and organized from what it does to posting behavior to refusals to lifecycle. Given the accounting subtleties, nearly every clause carries information, though a few sentences could be split for readability.

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

Completeness4/5

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

For a four-parameter mutation with no output schema, the description covers the essential behavioral envelope: posting date, statement effects, refusal conditions, replacement semantics, and prerequisites. What it leaves out is minor: the shape of the response (e.g. resulting entry identifier) and any permission requirements.

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 nonetheless adds accounting meaning: debit/credit must follow the account's normal direction with contra accounts reversed, and equity_element_id is explained as the plug account 'usually Opening Balance Equity' that is mandatory when debits and credits differ. The rest (cents, entity_id, memo default) is already fully documented in the schema.

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 description opens with a specific verb and resource: 'Record the balance sheet an entity's books start from.' It scopes the content ('one balance per balance-sheet account (assets, liabilities, equity), in cents') and the posting behavior, so an agent can distinguish this from a routine balance-recording or trial-balance tool 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?

It states exactly when this applies ('when its history does not come with them'), the prerequisite ordering ('Set up the fiscal calendar first'), the replacement lifecycle ('One per entity: recording it again replaces it, until the entity's first close'), and the post-close alternative ('a correction is an adjusting entry in an open month'). It also names the related sibling change-calendar-start for moving the start date.

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.