Method

reconcile.info

An account's reconcile information: last reconcile date and interval, postponed reconciliation.

Reads an account's reconcile information: the date of the last reconciliation, the interval between statements, a postponed reconciliation (its date and balance) and whether sub-accounts are included. All null for an account never reconciled. reconcile.start uses the last date plus the interval as the next statement date.

Examples

Example: with a copy of the reports/reconcile example book open as book.gnucash.

JSON-RPC

Request:

{"jsonrpc":"2.0","id":1,"method":"reconcile.info","params":{"account":"Root:Asset:Bank"}}

Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "lastDate": null,
    "lastInterval": null,
    "postponeDate": null,
    "postponeBalance": null,
    "includeSubaccounts": false,
    "…": "…"
  }
}

Command line

red-ale exec --book book.gnucash reconcile.info '{"account":"Root:Asset:Bank"}'

It prints:

{
  "lastDate": null,
  "lastInterval": null,
  "postponeDate": null,
  "postponeBalance": null,
  "includeSubaccounts": false,
  "…": "…"
}

MCP tool call

Tool call:

{"name":"reconcile.info","arguments":{"account":"Root:Asset:Bank"}}

Result:

{
  "structuredContent": {
    "lastDate": null,
    "lastInterval": null,
    "postponeDate": null,
    "postponeBalance": null,
    "includeSubaccounts": false,
    "…": "…"
  }
}

Effect: read.

Params

Params naming an account.

  • account (AccountRef, required): The account.

Result

An account's reconcile information.

  • account (Guid, required): The account.
  • lastDate (Timestamp or null): When it was last reconciled.
  • lastInterval (IntervalWire or null): The interval between its last two reconciliations.
  • postponeDate (Timestamp or null): A postponed reconciliation's statement date.
  • postponeBalance (Amount or null): A postponed reconciliation's ending balance, raw sign.
  • includeSubaccounts (boolean, required): Reconciliations include sub-accounts.