Skip to main content
Glama

Octobooks

Prepayments, accruals, loan interest

month_end_entries

Round 622, the month end entries that come back every month (the page Accruals shows the same). action=list: the schedules with every entry and its state (posted, pending, due, planned), the switches, and with period (YYYY-MM) the loan interest accrued at its end. action=schedule_add with schedule {kind: prepayment, deferred_income or accrual; narration; amount; first_month YYYY-MM; months 1 to 120; pl_account (the expense, income or work in progress account); balance_account (left out: Prepayments, Deferred income or Accruals of the chart); move_on (YYYY-MM-DD, optional: the whole amount is moved off the expense or income account onto the balance sheet account that day, for a bill or invoice booked to the profit and loss account); reverse (true: a one month accrual reversed on the 1st); reference; party}: a prepayment releases Dr expense Cr Prepayments, deferred income Dr Deferred income Cr income, an accrual Dr expense Cr Accruals, one entry on each month's last day, the last taking the rounding; every entry dated up to today is posted at once. action=schedule_end with schedule_id and reason. action=post_due: every schedule entry dated up to today (the job does it every hour too). action=loan_interest with period: per loan on the register with a rate, the interest from its own last interest date (its schedule and its own entries, not another loan's) to and including the month end on the balance (day_convention says it); take (loan ids or references) to choose; posted Dr interest payable Cr Accruals (a loan given: Dr Accrued income Cr interest received), reversed on the 1st. action=switch with switch auto_depreciation or auto_loan_interest and on true or false: whether the job posts the depreciation the register says and the loan interest of each month that ended, automatically (on unless set otherwise). Round 1141, the page Month end, fold by fold, with period (YYYY-MM): action=month: per fold (depreciation, prepayments, accruals, payroll, stock) what it would post (its lines) and what the month holds posted, what Accruals hold by item, prepayments found that nothing releases (spread one with schedule_add, balance_account its account, months where given: a loan's term, as spread before, or 12 where the company has no history; months_note says which). action=depreciation, prepayments (the month's schedule entries), interest: post that fold. action=accrual with account, amount, narration: Dr account, Cr Accruals at the month end, reversed on the 1st. action=payroll with pay_date and figures {gross, paye, employee_nic, employee_pension, student_loan, other_deductions, employer_nic, employer_pension} (amounts; net pay is gross less the deductions): one journal per pay date on the chart's payroll accounts. action=stock: the stock entry of a company that keeps stock by product. action=stock_count with rows [{item, location, quantity, unit_cost}] or total (the closing stock at cost): the difference to the stock account posted against stock movement; samples {amount, narration} Dr marketing Cr stock, write_off {amount, narration} Dr stock write offs Cr stock, in the same entry (the count is what is left on hand); counts {account: closing stock at cost} for the stock accounts that action=month lists under stock_accounts (the chart's own is the total; packaging stock), each against its own movement account in the same entry. action=month also lists missing_bills: a regular supplier with no bill in the month, a jump in a supplier's invoice numbers. action=rebate_set with customer, rate (percent) and starts (YYYY-MM): the customer's rebate on its net sales of each month (invoices less credit notes and the deductions taken off its payments); rate 0 ends it. action=rebate with period and customer: that month's rebate accrued, Dr sales deductions Cr the rebate liability, not reversed, net of VAT (the VAT is adjusted when the retailer's credit note or deduction is entered); after a change of the month's figures the same action posts the difference; action=month lists rebates per customer. Every entry is released as the owner's switches say.

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": {
      "action": "<action>"
    },
    "name": "month_end_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
onNo
rateNo
rowsNo
takeNo
totalNo
actionYes
amountNo
countsNo
periodNo
reasonNo
startsNo
switchNo
accountNo
companyNo
figuresNo
samplesNo
customerNo
pay_dateNo
scheduleNo
narrationNo
write_offNo
schedule_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / counts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Counts"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / customer
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Customer"
      +}
    • addedInput schema / properties / rate
      Added value: +{
      +  "anyOf": [
      +    {},
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Rate"
      +}
    • addedInput schema / properties / samples
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Samples"
      +}
    • addedInput schema / properties / starts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Starts"
      +}
    • addedInput schema / properties / write_off
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Write Off"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only state readOnly=false, destructive=false, idempotent=false, openWorld=false; the description goes well beyond by disclosing the double-entry effects (Dr expense Cr Prepayments, etc.), that entries post at once up to today, that accruals reverse on the 1st, rounding on the last entry, re-posting of diffs after figures change, and that 'Every entry is released as the owner's switches say'. It leaves some actions (schedule_end, stock, payroll side effects) thinner, so not a 5.

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

Conciseness3/5

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

Every action block carries information that would otherwise be missing, so length is partly justified, but the text is a run-on wall with noisy artifacts ('Round 622', 'Round 1141') and no headings or ordering, making it hard to scan. It is not front-loaded: the reader must wade through accounting mechanics before learning the action set.

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 high-complexity, 16-action, 22-parameter tool with an output schema (so return values need not be explained), the description documents nearly every action and most parameter shapes. Remaining gaps are the undocumented 'company' parameter, unspecified authorization/error behavior, and thin coverage of a few actions such as schedule_end and stock.

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 description coverage is 0% across 22 parameters, so the description carries the full burden and largely does: it defines period format (YYYY-MM), the schedule sub-fields (kind, narration, amount, first_month, months 1-120, pl_account, balance_account, move_on, reverse, reference, party), figures sub-fields for payroll, stock_count rows/total/samples/write_off/counts, rebate customer/rate/starts, take, switch/on, schedule_id and reason. The 'company' parameter and a few nested shapes go undocumented, leaving a real gap.

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

Purpose4/5

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

The description names concrete resources and operations (prepayment/deferred income/accrual schedules, loan interest accrual, payroll journals, stock counts, rebates, month-end posting) and enumerates every action, so an agent can tell what the tool covers. The opening sentence is obscure jargon ('Round 622, the month end entries that come back every month') and it never contrasts itself with plausible siblings like month_close or accruals_propose, which keeps it from a 5.

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

Usage Guidelines3/5

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

Usage is implied per action (e.g. 'action=post_due: every schedule entry dated up to today (the job does it every hour too)', 'take (loan ids or references) to choose', 'rate 0 ends it'), which gives the agent conditions for each branch. However, there is no explicit when-to-use-this-vs-alternative guidance, no stated prerequisites, and no when-not guidance for the many overlapping posting actions.

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.

Resources